Margin causes objects to bounce around a lot

User avatar
Lorian
Posts: 4
Joined: Wed Feb 14, 2007 4:20 pm

Margin causes objects to bounce around a lot

Post by Lorian »

Hi folks.

I was using ODE as the physics and collision detection library for my program, but was having trouble with getting trimeshes to work, so I decided to replace the collision detection with Bullet.

So far it is ok, I have a small cube falling onto a bigger (static) one and the collision detection is working fine and the ODE joints are being created. Problem is, unless I set the margin to 0 on both the cubes, it starts wobbling a lot once it should have become still. When it is set to 0 it comes to a perfect stop in the right place.

So my question is, does it really matter? Is having the margin strictly necessary?

Maybe someone could suggest a better solution than disabling the margin.

Cheers.