Rope and Physics Simulation

The above gif is from Sebastian Lague's Behind the Scenes of his recent submission to Ludum Dare #38, right here



Nope, it's just rope...

I managed to work out an implementation of rope, without scrounging around the internet for a script somebody else made back for Unity 3. So without further a do, here it is!

The white line is a simple Debug.DrawLine between each of the link points which are pink because I didn't set the material of the cube... But you can grab any link, set it as an anchor and it will freeze it's position and affect the physics of the other links in the chain...

A gif example of me playing around with it...

Tom Lynn

Read more posts by this author.

Australia http://rubbix.net