Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  tearing cloth access
#2
(21-03-2022, 09:15 AM)maygdirf Wrote: Hi there!
I was wondering whether is possible to access which triangles of the mesh is displaced when a collision with a tearing cloth happens. In particular, I would like to know the velocities of the particles hit and their displacement in the normal direction to the hitting. Is there anyone who can help me please?

Hi there!

You can subscribe to the ObiTearableCloth.OnClothTorn. This event will pass a ObiClothTornEventArgs struct as argument, which contains the particle index torn as well as the updated faces in the cloth's half-edge structure.

Using the particle index, you can get its velocity using the particle API:
http://obi.virtualmethodstudio.com/manua...icles.html

let me know if you need further help.

kind regards,
Reply


Messages In This Thread
tearing cloth access - by maygdirf - 21-03-2022, 09:15 AM
RE: tearing cloth access - by josemendez - 21-03-2022, 11:57 AM
RE: tearing cloth access - by maygdirf - 21-03-2022, 01:24 PM
RE: tearing cloth access - by josemendez - 21-03-2022, 01:31 PM
RE: tearing cloth access - by maygdirf - 23-03-2022, 09:07 AM