Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: VehicleDemo
PostPosted: Sun Apr 08, 2012 5:30 pm 
Offline

Joined: Sun Apr 08, 2012 5:21 pm
Posts: 1
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:
   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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group