Manual tearing via cript - 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: Manual tearing via cript (/thread-186.html) |
RE: Manual tearing via cript - josemendez - 16-01-2020 (16-01-2020, 01:22 PM)zakur0 Wrote: Bump! There's no automatic callback (it's in our TODO list though). For now you can iterate over the rope's elements array. Each element holds 2 particles together, and they are sorted from the start of the rope to the end. So if you find two elements such that: Code: element.particle2 != nextElement.particle1 It means the rope is torn there. RE: Manual tearing via cript - Sether - 17-01-2020 (16-01-2020, 04:32 PM)josemendez Wrote: Hi there! thank you, that did it! yes please update the docs |