I'm new to bullet, all works pretty well but something seems strange to me...
I'm currently trying to move kinematic objects and I have two solutions that doesn't works the same :
1st solution :
Code: Select all
btDefaultMotionState* myMotionState = (btDefaultMotionState*)body->getMotionState();
myMotionState->setWorldTransform(transfo);
2nd solution, il add the following line :
Code: Select all
body->setInterpolationWorldTransform(transfo);
Can somebody explain me what is the best solution to update kinematics ?
Thank you and sorry for my bad english