Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  communicate Obi rope with OVR grabber of Oculus quest
#1
Hi, is there any way I can communicate Obi rope with other scripts, in case the obi is teared appart?

Otherwise, can I constraint the movement of the OVR grabber of Oculus quest, when the obi particles get too stretched?

Thank you
Reply
#2
(19-07-2022, 07:55 PM)iromano Wrote: Hi, is there any way I can communicate Obi rope with other scripts, in case the obi is teared appart?

Hi!

Yes, just subscribe to rope.OnRopeTorn event. See the API for details:
http://obi.virtualmethodstudio.com/api.html

(19-07-2022, 07:55 PM)iromano Wrote: [color=#222222][size=small][font=Arial, Helvetica, sans-serif]Otherwise, can I constraint the movement of the OVR grabber of Oculus quest, when the obi particles get too stretched?

Ideally, your controller should be part of the simulation. This way it can react to forces applied by the rope, so for instance when you pull from a rope that cannot stretch anymore, the rope will apply a large force to the controller and you won't be able to pull further.

In order for this to work, you need the controller to be a rigidbody, and attach the rope to it using a dynamic attachment. See:
http://obi.virtualmethodstudio.com/manua...ments.html
Reply