Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Extend Rope on Stretch
#2
(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,
Reply


Messages In This Thread
Extend Rope on Stretch - by vrtraining - 29-10-2024, 03:50 AM
RE: Extend Rope on Stretch - by josemendez - 30-10-2024, 08:53 AM