07-08-2020, 12:27 PM
(This post was last modified: 07-08-2020, 12:27 PM by josemendez.)
(07-08-2020, 11:57 AM)Oybsan Wrote: Hi,
I'd like to read forces applied by a cloth, on a collider. Is there any fonction allowing me to do that ?
Thanks,
Oybsan.
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).