- Home /
Rope Physics using Spring Joints
I'm trying to create rope physics in Unity. I've used a bunch of spring joints to simulate rope, which works pretty well, but the pieces have spasms when moved too far apart. Are there any good alternatives to this method, or are can I configure the physics differently to fix this?
Answer by adamgryu · Feb 01, 2015 at 03:57 PM
I ended up solving this problem by using "Configurable Joints." They look a little intimidating, but I watched a short tutorial on them.
If anyone else wants to make a rope using them, all I used were default settings (the Axis was X and the Secondary Axis was Y) and then set X,Y,Z-motion all to "Locked"
Answer by Maurice_B · Feb 01, 2015 at 12:48 PM
use hinge joints? they don't stretch.
I looked into them, but it appeared as if they only allow rotation around one axis? I guess I was mistaken.
Answer by birdbrain5 · May 14, 2017 at 10:14 PM
@adamgryu Hey I know this is waaaaaay late, but how did you attach the joints of the rope to the players? Did you just make the joint on the last/first piece of rope connect to the player's rigidbody? That's what I did and whenever I rotate the player the physics of the rope go insane and everything starts having a spasm and shaking.