Bug / Crash communicate Obi rope with OVR grabber of Oculus quest - 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: Bug / Crash communicate Obi rope with OVR grabber of Oculus quest (/thread-3530.html) |
communicate Obi rope with OVR grabber of Oculus quest - iromano - 19-07-2022 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 RE: communicate Obi rope with OVR grabber of Oculus quest - josemendez - 20-07-2022 (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/manual/6.3/attachments.html |