Hello World fusion with Ogre3D

kilik_000
Posts: 1
Joined: Sun Sep 06, 2009 7:37 am

Hello World fusion with Ogre3D

Post by kilik_000 »

Dear forum readers,
I am new with bullet but fortunatelly I know a little bit Ogre3D.
I would like to implement the HelloWorld example of bullet in Ogre(http://www.bulletphysics.com/mediawiki- ... ello_World) , maybe drawing a fall down box or shpere.
In myprogect I have written the init of the physics in the createScene method, the deleting of the pointers in the destructor of the class and I have put the calulus of the fall down item on a frame listener but when I run the program I can't see a really falling box.
c++;
if(c>200) //here I wait almost 5 second before the box falls down
if((mNode->getPosition().y>0)){
dynamicsWorld->stepSimulation((evt.timeSinceLastFrame)/1000.0f,10);

btTransform trans;
fallRigidBody->getMotionState()->getWorldTransform(trans);


mNode->translate(Vector3(trans.getOrigin().getX(), -trans.getOrigin().getY(),trans.getOrigin().getZ()));

}

My falling box is too fast! I need help...