Code: Select all
body->setCollisionFlags(body->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT);
body->setActivationState(DISABLE_DEACTIVATION);
Is there something else I need to do before being able to animate a kinematic object?
Thanks for your help!