14-10-2024, 12:02 PM
Hi,
You can measure strain: the amount of stretching caused by tension, which is the rate of current length vs length at rest:
Code:
Strain will be >1 when the rope is stretched, <1 when compressed, 1 when exactly at rest.
kind regards,
You can measure strain: the amount of stretching caused by tension, which is the rate of current length vs length at rest:
Code:
Code:
float strain = rope.CalculateLength() / rope.restLength;
Strain will be >1 when the rope is stretched, <1 when compressed, 1 when exactly at rest.
kind regards,