- Home /
HingeJoint2D disabling and re enabling limits, makes the joint rotate all the way back
So I have this character with an Arm that is connected to the character with HingeJoint2D. It has an upper angle limit of -230. Now when I press space, it starts to rotate and stops when limit is reached. When I press A, I'm disabling limits and now it is starting to rotate the other way and so it keeps rotating. But now if I re enable the limits by pressing space again, it will make the arm rotate at a hich speed back as much as it was rotated forward when pressing A and then stops at the limit. How could I do it so it just stops at the limit and doesn't start rotating all the way that it had rotated without limits.
I know this question is probably hard to understand, but oh well.
something like this? http://answers.unity3d.com/questions/846118/hingejoint2d-resolves-limits-after-dragging-rigidb.html
I'm not sure anymore if I ever fixed it.
Yea it's quite the same, when I disable the limits and rotate the joint 720 degrees clockwise and then re enable the limits, it will rotate 720 degrees counterclockwise before stopping at the limit.
Your answer
![](https://koobas.hobune.stream/wayback/20220612101153im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
HingeJoint2D.jointAngle flips between two values based on rotation 0 Answers
HingeJoint Does Not Revert to Correct Limits 1 Answer
How to make a ball and chain that can swing? 0 Answers
How to make pinball flipper 0 Answers
HingeJoint2d 0 Answers