Help Cutting Cloth - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html) +--- Thread: Help Cutting Cloth (/thread-2662.html) |
Cutting Cloth - Spectra_7 - 23-12-2020 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: Code: [1] Detect contacts between the knife and the cloth particles. 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. RE: Cutting Cloth - josemendez - 24-12-2020 (23-12-2020, 07:38 PM)Spectra_7 Wrote: 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? Hi there, This page describes batches and constraint access in detail: http://obi.virtualmethodstudio.com/tutorials/scriptingconstraints.html Let me know if you need further help. cheers! |