Hi.
I was searching through forums looking for cutting cloth on collision like Knife. I did came across a thread where you mentioned these 3 steps:
I got the contact particle index, but I am stuck and confused by iterating over all constraint batches by involving that. How exactly to do that?
I saw the ApplyTearing() function, but I think it only iterates through Distance constraint batch. Also what exactly is constraint batch?
Please help. Thank you.
I was searching through forums looking for cutting cloth on collision like Knife. I did came across a thread where you mentioned these 3 steps:
Code:
[1] Detect contacts between the knife and the cloth particles.
[2] Get the contact particle index, and find out which constraint (s) involve that particle by iterating over all constraint batches.
[3] Call cloth.Tear() passing a StructuralConstraint struct, that references the constraint and its batch.
I got the contact particle index, but I am stuck and confused by iterating over all constraint batches by involving that. How exactly to do that?
I saw the ApplyTearing() function, but I think it only iterates through Distance constraint batch. Also what exactly is constraint batch?
Please help. Thank you.