Obi Official Forum
Help Is there a way of obtaining the 'tension' and streching of a rope - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Is there a way of obtaining the 'tension' and streching of a rope (/thread-4386.html)



Is there a way of obtaining the 'tension' and streching of a rope - danik9 - 14-10-2024

I want to have a crane that get certain behavior once a tension threshold is certain amount.

On top of that I want the motor that retract or extend the rope to sound like its making more effort depending on the tension amount.

Is this achievable? if so, how? 

Best regards,
Daniel.


RE: Is there a way of obtaining the 'tension' and streching of a rope - josemendez - 14-10-2024

Hi,

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,


RE: Is there a way of obtaining the 'tension' and streching of a rope - danik9 - 14-10-2024

Works great! exactly what we needed! 

Cheers!