16-01-2020, 04:37 PM
(16-01-2020, 01:22 PM)zakur0 Wrote: Bump!
If the rope tearing is automatic using tear resistances, is there an event or a way to figure out the particle indices where the cut occurred, so you can apply a texture to fill the rope from the inside?
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.