20-07-2022, 07:17 AM
(This post was last modified: 20-07-2022, 07:17 AM by josemendez.)
(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