VehicleDemo
Posted: Sun Apr 08, 2012 5:30 pm
Hi, I am new to Bullet.. according to VehicleDemo I am trying to "import" this to ma engine.
But vehicle is not moving. In VehicleDemo everything works fine.
Car rigid body is inited this way:
My Car Code for streering and throtle/break:
http://pastebin.com/fj1P1bzp
World is inited corerctly... If I let cubes to fall, gravity and bouncing is correct
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