How to set a rigid body in 3d position [SOLVED]
Posted: Thu Oct 16, 2014 11:03 am
I'm programming a simple minigolf, game, and I try to set the ball ( rigid body ) in the 0,0,0 position when the ball Y position is < -1. This is my code:
But the sphere is not set on 0,0,0 instead of this the ball disappears.
Code: Select all
btVector3 position( 0, 0,0 );
this->ball->bulletRigid->getWorldTransform().setIdentity();
this->ball->bulletRigid->getWorldTransform().setOrigin(position);