Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Getting forces on Obi colliders
#1
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.
Reply
#2
(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).
Reply
#3
(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 !
Reply