Obi Official Forum
Help How to Grow Length of rope from tail at runtime? - 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 How to Grow Length of rope from tail at runtime? (/thread-3086.html)



How to Grow Length of rope from tail at runtime? - uv_unity - 07-09-2021

Hi, how to grow 'x' amount of length of from from tail end of the rope at runtime? Eg. if length is 1, increase/add .2f more length from tail.  New to Obi... please help! Tímido Huh


RE: How to Grow Length of rope from tail at runtime? - josemendez - 13-09-2021

Hi!

You can use cursors to change rope length from any point in the rope, in either direction. See:
http://obi.virtualmethodstudio.com/manual/6.2/ropecursor.html

Programmatically, you just call cursor.ChangeLength() and pass the new length in meters. Check out the Crane sample scene or the RopeGrapplingHook one for  working examples.