I read all the page here : http://www.bulletphysics.org/mediawiki- ... _The_World
and my problem is there : timeStep < maxSubSteps * fixedTimeStep
I have got a timeStep that can change between two calls of stepSimulation. If I put values for maxSubSteps and fixedTimeStep to meet the equation above, my objects doesn't move, but if I set them very small so the equation becomes : timeStep > maxSubSteps * fixedTimeStep it works well.
I'd like to know what can be the problem. Is there a possibility that it crashes cause I update my kinematic objects before calling the stepSimulation ?
And for moving kinematic objects, I'm directly setting their transformation using :
Code: Select all
//get the motion state of the body
btDefaultMotionState* myMotionState = (btDefaultMotionState*)body->getMotionState();
//set his opengl transformation
myMotionState->m_graphicsWorldTrans.setFromOpenGLMatrix(m);
thank you in advance and sorry for my bad english