14-10-2021, 12:17 PM
(14-10-2021, 12:02 PM)davidsedrakyan Wrote: Okay! I finally found a solution, I need to make rope longer if it's stretched too much, is there any way that I can get stretched force maybe ? To Make the Rope longer if it's stretched too much?
You can simply check its current length vs its rest length:
Code:
float strain = rope.CalculateLength() / rope.restLength;