Checking if a 2D joint gets pulled or pushed
Hi there,
I'm working on a rope swing game. I'm using a Spring Joint for the rope and I would like to check, if the joint is getting currently pulled (if the character "hangs" in the joint) or if it gets pushed (if the character is flying towards the end anchor point of the joint). I want do do that, because the rope should only keep its length, if the charakter is hanging. If not, the rope should adjust its length to the distance character - end anchor point on Update. I hope you know what I mean. The docs don't say anything about the forces beeing applied to the rope.
Any ideas?
Thanks! Stefan
Your answer
Follow this Question
Related Questions
pulling gameobjects across collider C# 3 Answers
I want to highlight the correct answer when wrong one clicked... Help! 1 Answer
2 ropes connected with HingeJoint2D components to 1 object act weird. 0 Answers
max stretch for spring joint2d 0 Answers
Road problem. Detect collision without effectively colliding with a rigidBody 1 Answer