Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Character joint causes object to rotate when swinging

Discussion in 'Physics' started by RachelSherrick, Oct 10, 2023.

  1. RachelSherrick


    Sep 28, 2023
    I put a character joint on a mallet that I wanted to be able to swing. To be honest I have no idea what I'm doing. I'm having the 's' key move the mallet up by increments and the 'w' key turn on the gravity and drop the mallet. The 'a' and 'd' keys move both the mallet and a ball in front of it left and right respectively. Whenever I move the mallet and ball either left or right, move the mallet up, and then drop it, the mallet doesn't drop straight down. It kind of rotates and misses the ball, I think because it was moved sideways. What can I do to make it drop straight every time? I'll attach a screenshot of my screen.

    Attached Files: