07-08-2020, 12:57 PM
(07-08-2020, 12:27 PM)josemendez Wrote: Yes, you want to use collision callbacks. See:
http://obi.virtualmethodstudio.com/tutor...sions.html
The idea is that you iterate over all contacts between each individual cloth particle and the collider. The contact struct contains normal, tangent and bitangent impulse magnitudes applied by the contact, as explained in the above link. You just have to convert from impulses to forces (dividing by the timestep).
Thanks for your answer, it will help me a lot !