nikki
11-07-2008 14:15:45
I've created a Kinematic Object this way:-
Then, I try to move it around by setting linear velocity, and even changing position or translating it using raw Bullet per frame, but it doesn't move. I even using 'setShape' instead of 'setStaticShape' with both zero mass and non zero mass, but it doesn't help.
Is there some thing else I need to do before I'm able to move a kinematic object?
Thanks for your help!
OgreBulletCollisions::StaticMeshToShapeConverter converter(mEntity);
mShape = converter.createConvex();
mBody = new OgreBulletDynamics::RigidBody(name, phyWorld);
mBody->setStaticShape(mNode, mShape, 0.1, 0.8, pos, rot);
mBody->setKinematicObject(true);
mBody->disableDeactivation();
Then, I try to move it around by setting linear velocity, and even changing position or translating it using raw Bullet per frame, but it doesn't move. I even using 'setShape' instead of 'setStaticShape' with both zero mass and non zero mass, but it doesn't help.
Is there some thing else I need to do before I'm able to move a kinematic object?
Thanks for your help!