Check if whole rope is inside a trigger - 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: Check if whole rope is inside a trigger (/thread-2395.html) |
Check if whole rope is inside a trigger - Spectra_7 - 31-07-2020 Hello. First of all, great asset. The rope falls down from top. I want to trigger an event when the whole rope is inside this box trigger. Is this possible? Thanks. RE: Check if whole rope is inside a trigger - josemendez - 31-07-2020 (31-07-2020, 12:55 PM)Spectra_7 Wrote: Hello. first of all, great asset. Sure, Just subscribe to the solver's OnCollision event. If all particles belonging to the rope have a contact with the trigger, you call whatever function you need. See: http://obi.virtualmethodstudio.com/tutorials/scriptingcollisions.html RE: Check if whole rope is inside a trigger - Spectra_7 - 31-07-2020 Thanks for the reply. Like you said, I got it work the way I wanted. I am dropping the script here in case someone finds it useful: Code: using System.Collections; Thanks a lot. |