Collision detected but sphere doesn't stop.

jduran
Posts: 11
Joined: Sat Aug 13, 2011 2:55 pm

Collision detected but sphere doesn't stop.

Post by jduran »

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
mi076
Posts: 144
Joined: Fri Aug 01, 2008 6:36 am
Location: Bonn, Germany

Re: Collision detected but sphere doesn't stop.

Post by mi076 »

static rigid box (mass = 0. and inertia = (0.0.0.))
don't calculateLocalInertia for static body
jduran
Posts: 11
Joined: Sat Aug 13, 2011 2:55 pm

Re: Collision detected but sphere doesn't stop.

Post by jduran »

No, in the static box, the local inertia is not calculated. I've printed the parameters to btRigidBodyConstructionInfo struct.

Joaquim Duran