I have changed
tr.setOrigin(btVector3(0,0.f,0));
to
tr.setOrigin(btVector3(10000,10000.f,100000));
Vehicle appears at same position on the ground.
Code: Select all
compound->addChildShape(localTrans,chassisShape);
tr.setOrigin(btVector3(10000,10000.f,100000)); // must move vehicle out of space
m_carChassis = localCreateRigidBody(800,tr,compound);//chassisShape);
//m_carChassis->setDamping(0.2,0.2);May be btRaycastVehicle overrides it some where but I can't find where.
Thanks.