Hey there Unity peeps.
So, I have this 2d platformer made out of box colliders. I have the player connected to a point by a LineRenderer and a DistanceJoint2D, for use in physics puzzles.
What I want to do is bend this ''rope'' around objects in the scene, then retract the rope (shorten the distance of the joint), flinging the player around the object. Basically this image:![alt text][1]
[1]: /storage/temp/111206-animation2.gif
I know I'll be making a list of positions and then move the joint anchors around whenever it wraps/unwraps, but I'm not sure how to tell when and where it wraps on something.
What should I be using for this?
↧