I have a small “rope” bridge consisting of planks (with rigidbody) and pieces of “rope” (wtih rigidbody and hinge joints).
I have gravity disabled on all rigidbodies and I have set small limits on all hinge joints. The bridge responds to other rigidbodies ok. However, when I “Use Spring” and set any values of Spring or Damping on all the hinge joints it seems to have no effect.
I’d like the bridge to return to its original position at a quick rate rather than moving up and down in a wave-like motion which can take many seconds to return to “normal”.
I’ve tried this in U2018.4 and U2020.2 and get pretty well the same result.
I would expect adding a spring stiffness to the hinge to control the amplitude of the rotation (it becomes ‘harder’ for the joint to rotate, assuming an appropriate stiffness), but due to the elastic nature of the spring, no energy is removed from the system by it. The spring may affect the damping time indirectly by changing the velocity of the bodies and hence the drag forces (I should probably think about that a bit more, but anyway…). Adding joint damping should also work, but I do not have experience implementing it in Unity / PhysX.
Yeah, the feature of spring and damping of hinge joints has been in Unity for years - just never had a reason to use it before. Not sure why it seems to have no effect. Anyway, just applying drag to the planks works fine.