Boxes resting on edges
Posted: Wed Jun 04, 2008 7:58 pm
Hi. Firstly, love Bullet.
I've noticed in my current program that when I drop boxes onto a ground plane, and they bounce and land exactly on one edge, it seems to take a long time for them to settle over onto a face.
I've tried messing about with various properties of the rigid body, but don't seem to be able to find anything to affect it.
Is there anyway to reduce the time a box spends balanced on one edge before it tips over onto a face?
[EDIT]
An apparent, hackish solution seems to be to create the box shape slightly none-cubic, e.g btBoxShape(btVector3(0.51f,0.5f,0.5f)) instead of 0.5f,0.5f,0.5f but this seems like a bit of a workround rather than a solution.
Paul
I've noticed in my current program that when I drop boxes onto a ground plane, and they bounce and land exactly on one edge, it seems to take a long time for them to settle over onto a face.
I've tried messing about with various properties of the rigid body, but don't seem to be able to find anything to affect it.
Is there anyway to reduce the time a box spends balanced on one edge before it tips over onto a face?
[EDIT]
An apparent, hackish solution seems to be to create the box shape slightly none-cubic, e.g btBoxShape(btVector3(0.51f,0.5f,0.5f)) instead of 0.5f,0.5f,0.5f but this seems like a bit of a workround rather than a solution.
Paul