- Home /
Hinge joint 2d combined with relative joint 2d jitters with increasing linear offset
I'm creating an extending rope system using Unity's 2D physics and joint systems. The head of the rope is attached to the extension source with a relativejoint2d and is programmatically moved around the scene by setting the linear offset to be the mouse's world-space position. The body segment of the rope (just 1 right now for testing) is connected to the rope head by a hingejoint2d.
The problem is when the linear offset becomes greater than 5 in any direction away from the extension source the rope jitters. The rope head reflects back and forth across its goal linear offset position.
The jitter only happens when the rope body segment is attached with the hingejoint2d. Without it the rope head moves to any goal linear offset position just fine.
What could be causing the jitters and how can I fix it?
Your answer