- Home /
Falling object, change its angle
Hi guys, I'm stuck on this problem from about 2 days, I'm new in Unity but not in game programming. What I try to do is very simple. I've this object that's using physics and it's falling down, I've attached to it a DistanceJoint2D and it creates almost the effect I want, but I also want that it changes his sprite angle. How can I do? PS. The green line is the DistanceJoint2D on Game Scene. Thanks!
You could add a child to the physics GameObject and add the sprite to that. Then calculate the direction the distance joint has (position and connected anchor) and set the sprites up vector to it. Have the pivot of the sprite at the parachutes top center
Your answer
Follow this Question
Related Questions
Disappearing object 2 Answers
My object is falling through the platform 1 Answer
character gravity problem 1 Answer
how to make an object fall slowly ? 2 Answers
Problems making a glider 3 Answers