Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Get rope/rod stretch lengh?
#3
(28-02-2021, 07:29 PM)josemendez Wrote: You can get both the rest length (stationary length, 100% in your example)
Code:
float restLength = rope.restLength;

And the current length (including any stretching, 1.2, 1.3, etc):
Code:
float length = rope.CalculateLength();

The ratio between both (length/restLength) gives you a measure of strain: <1 if the rope is compressed, ==1 if the rope remains at rest length, > 1 if the rope is stretched.

Thanks! Sonrisa
Reply


Messages In This Thread
Get rope/rod stretch lengh? - by JhonatasFarias - 27-02-2021, 07:59 PM
RE: Get rope/rod stretch lengh? - by josemendez - 28-02-2021, 07:29 PM
RE: Get rope/rod stretch lengh? - by JhonatasFarias - 01-03-2021, 04:38 PM