Help Extend Rope on Stretch - 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 Extend Rope on Stretch (/thread-4398.html) |
Extend Rope on Stretch - vrtraining - 29-10-2024 I want to ask currently if we stretch a rope it doesn't change its length but is there any built-in method that allows auto extension of rope length on stretching? For example if we pull the rope using an attachment and stretch it, is there anyway it increases its length automatically instead of stretching too far? RE: Extend Rope on Stretch - josemendez - 30-10-2024 (29-10-2024, 03:50 AM)vrtraining Wrote: I want to ask currently if we stretch a rope it doesn't change its length but is there any built-in method that allows auto extension of rope length on stretching? For example if we pull the rope using an attachment and stretch it, is there anyway it increases its length automatically instead of stretching too far?Hi, You can easily implement this using ObiRopeCursor. Just measure the rope's current length (rope.CurrentLength()) and compare it to its rest length (rope.restLength) to determine if the rope is stretched and how much. Then call cursor.ChangeLength() passing the new desired length. kind regards, |