Page 1 of 1

VehicleDemo

Posted: Sun Apr 08, 2012 5:30 pm
by MartinPerry
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:

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);
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