I want to implement a "break limit" for RopeConstraints, which will cause the RopeConstraint to be destroyed if the tension force of the rope is greater than a certain amount. However, I'm not quite sure on how to get the tension force of the rope.
The only thing I could think of was to use the RopeConstraint.CurrentDistance
property. When one part is hanging from another part by a RopeConstraint, the CurrentDistance is going to be greater than the actual RopeConstraint.Length
. Then I could measure if the CurrentDistance becomes too great and Destroy the RopeConstraint.
But this solution is not consistent. Sometimes the CurrentDistance will increase over time, seemingly randomly, causing the rope to suddenly break.