Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manual tearing via cript
#21
(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.
Reply


Messages In This Thread
Manual tearing via cript - by Kalidor - 09-10-2017, 10:29 AM
RE: Manual tearing via cript - by niZmo - 09-10-2017, 11:32 AM
RE: Manual tearing via cript - by josemendez - 09-10-2017, 02:13 PM
RE: Manual tearing via cript - by ctalDai - 31-07-2019, 06:48 AM
RE: Manual tearing via cript - by Kalidor - 10-10-2017, 09:56 AM
RE: Manual tearing via cript - by josemendez - 10-10-2017, 10:28 AM
RE: Manual tearing via cript - by Kalidor - 10-10-2017, 11:51 AM
RE: Manual tearing via cript - by josemendez - 10-10-2017, 03:14 PM
RE: Manual tearing via cript - by Kalidor - 10-10-2017, 03:44 PM
RE: Manual tearing via cript - by x-lab - 19-10-2017, 11:12 AM
RE: Manual tearing via cript - by josemendez - 19-10-2017, 11:43 AM
RE: Manual tearing via cript - by x-lab - 19-10-2017, 12:13 PM
RE: Manual tearing via cript - by josemendez - 19-10-2017, 01:09 PM
RE: Manual tearing via cript - by x-lab - 19-10-2017, 03:34 PM
RE: Manual tearing via cript - by josemendez - 19-10-2017, 04:13 PM
RE: Manual tearing via cript - by x-lab - 20-10-2017, 11:14 AM
RE: Manual tearing via cript - by josemendez - 20-10-2017, 11:58 AM
RE: Manual tearing via cript - by Sether - 15-01-2020, 04:09 PM
RE: Manual tearing via cript - by josemendez - 16-01-2020, 04:32 PM
RE: Manual tearing via cript - by Sether - 17-01-2020, 10:10 AM
RE: Manual tearing via cript - by zakur0 - 16-01-2020, 01:22 PM
RE: Manual tearing via cript - by josemendez - 16-01-2020, 04:37 PM