I have recently updated Bullet to the latest version. I had been on a REALLY old version of bullet and it had been working fine. I am simulating cars, so I am using a btCylinderShapeZ for the wheels / a box for the car itself and a btBvhTriangleMeshShape (using tris from an Ogre3d mesh).
We are using Bullet for collision detection only, with a custom constraint-based physics library.
Now when I try to drive its very unstable and bounces around a great deal even when not driving it bounces like its moving on cobble stones.
This is how we defined the wheel shapes, it worked fine up to now
Code: Select all
re HalfWidth=Width*0.5;
if (HalfWidth >= Radius){
HalfWidth = Radius;
}
btVector3 SemiAxes(btScalar(Radius-HalfWidth),btScalar(Radius-HalfWidth),btScalar(ZERO));
pbtCyl=new btCylinderShapeZ(SemiAxes);
pbtCyl->setMargin(btScalar(HalfWidth));
Thanks for your help
All the best,
Ash