Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to Retrieve Contact Forces in Obisoftbody for Rigid-Softbody Collisions?
#1
Pregunta 
Hello everyone,

I'm currently using the Obisoftbody component for simulations and I need to obtain contact force information when a rigid body collides with a soft body. Specifically, I'd like to access the force vector and torque during these collisions for further analysis and control purposes.

I've gone through the official documentation and examples, but I haven't found a clear explanation on how to achieve this within Obisoftbody. I know that Obisoftbody is a powerful tool, but it seems like I'm encountering some difficulties when it comes to retrieving contact forces.

If anyone has experience using the Obisoftbody component and knows how to obtain contact force information during rigid-soft body collisions, please share some guidance or provide example code. Your assistance would be greatly appreciated.

Thank you!
Reply
#2
Hi!

Subscribe to solver.OnCollision, this will make a list of contacts available to you. Each contact contains orthonormal frame (normal/tangent/bitangent) and an impulse magnitude along each of them, along with information about the specific particle/collider pair involved in the contact.

The manual contains in-depth details about how collision callbacks work. See: http://obi.virtualmethodstudio.com/manua...sions.html

kind regards,
Reply
#3
(16-10-2023, 06:40 AM)josemendez Wrote: Hi!

Subscribe to solver.OnCollision, this will make a list of contacts available to you. Each contact contains orthonormal frame (normal/tangent/bitangent) and an impulse magnitude along each of them, along with information about the specific particle/collider pair involved in the contact.

The manual contains in-depth details about how collision callbacks work. See: http://obi.virtualmethodstudio.com/manua...sions.html

kind regards,

Thanks for your help~I have found what I need
Reply