VehicleDemo

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
Post Reply
MartinPerry
Posts: 1
Joined: Sun Apr 08, 2012 5:21 pm

VehicleDemo

Post 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
Post Reply