But vehicle is not moving. In VehicleDemo everything works fine.
Car rigid body is inited this way:
Code: Select all
btDefaultMotionState * bodyMotionState = new btDefaultMotionState();
btScalar mass = 1000;
btCollisionShape * bodyShape = new btBoxShape(btVector3(1, 1, 1));
this->carRigidBody = new btRigidBody(mass, bodyMotionState, bodyShape);
bulletWorld->world->addRigidBody(this->carRigidBody);
http://pastebin.com/fj1P1bzp
World is inited corerctly... If I let cubes to fall, gravity and bouncing is correct