Dear all,
I've a small tip in the configuration of bullet. I configure an static rigid box (mass = 0. and inertia = (0.0.0.)), then a dynamic sphere (mass = 1.) collides against the box. The collision is detected by the program, but the sphere continues the movement throw the box. I'm interested in the box should remain on top the the box rather than traverse it.
Which is the reason of this behavior? How can I avoid it?
Thanks and Best Regards,
Joaquim Duran
Collision detected but sphere doesn't stop.
-
- Posts: 144
- Joined: Fri Aug 01, 2008 6:36 am
- Location: Bonn, Germany
Re: Collision detected but sphere doesn't stop.
don't calculateLocalInertia for static bodystatic rigid box (mass = 0. and inertia = (0.0.0.))
-
- Posts: 11
- Joined: Sat Aug 13, 2011 2:55 pm
Re: Collision detected but sphere doesn't stop.
No, in the static box, the local inertia is not calculated. I've printed the parameters to btRigidBodyConstructionInfo struct.
Joaquim Duran
Joaquim Duran