[ad_1]
I’m connecting two shifting rigidbodies utilizing a spring joint in Unity. Between them, a rope will probably be rendered utilizing a line renderer and I need it to maneuver realistically because the joints transfer, with out physics.
I’ve examine verlet integration, however solely discovered examples the place one level strikes, and the opposite one is calculated, for instance a man with a grappling gun, swinging forwards and backwards.
Here’s the present implementation with spring joints.
The second picture reveals a pleasant and clean verlet rope with a line renderer. It’s slightly too lenient, however seems good. As this does not use physics, it would not let me transfer the article or have an effect on the ship, for instance if it was caught on one thing.
How do I make an elastic rope just like the second picture, between the spring joints, with out the physics engine?
[ad_2]