How can I detect collisions between soft and rigid bodies?
Posted: Wed Jan 20, 2010 6:02 am
Hi,
I'm trying to detect collisions between soft and rigid bodies. But found checking contact manifolds in dynamics world's internal tick callback only works for collisions between rigid bodies, I can not get any notice from it when a soft body collided with a rigid body.
So now I have to check the distance from the rigid body to every node in the soft body manually, to see whether it is less than a threshould value. It works but a bit time-consuming, especially when the soft body has lots of nodes.
Is there any other better solutions? How can I get notice of collision between soft and rigid bodies efficiently?
Thanks.
I'm trying to detect collisions between soft and rigid bodies. But found checking contact manifolds in dynamics world's internal tick callback only works for collisions between rigid bodies, I can not get any notice from it when a soft body collided with a rigid body.
So now I have to check the distance from the rigid body to every node in the soft body manually, to see whether it is less than a threshould value. It works but a bit time-consuming, especially when the soft body has lots of nodes.
Is there any other better solutions? How can I get notice of collision between soft and rigid bodies efficiently?
Thanks.