Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a way to get the tension force of a RopeConstraint?

Asked by
Drainhp 41
5 years ago

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.

0
There's actually no set property for TensionForce, but you could right something up w/ the equation irl. The actual equation for TensionForce is equal to: (Mass) * (Gravity Force) +/- (M * A) Psudar 882 — 5y

Answer this question