06-11-2017, 11:11 AM
(This post was last modified: 06-11-2017, 11:12 AM by josemendez.)
(05-11-2017, 10:44 PM)Rexima Wrote: Thank you very much, i got everything working, like i planned.
But i have at least one question, is it possible to check if the rope is stretched?
Is there any function to check if im stretching the rope?
Easiest way:
Code:
float strain = rope.CalculateLength()/rope.RestLength;
// strain == 1: no stretch, strain > 1: stretch, strain < 1: compression
the larger "strain" is, the more you're stretching the rope.