Page 1 of 1

RigidBody movement

Posted: Thu Sep 08, 2011 9:33 pm
by theHU
*** topic moved, please post in the proper forum section next time ***

Hello!

My problem is, that my rigidbody doesnt move when it lays on the ground and i add forces to it. I let it fall and it bounces, and while falling i add forces to it, it moves in that directions.

for example:

Code: Select all

player.getRigidBody()->applyCentralForce(btVector3(0,100,0));
its nearly the same as in the GettingStarted-Tutorial.

Re: RigidBody movement

Posted: Sat Sep 10, 2011 2:09 am
by Garibalde
before applying the force do a BodyRigid->activate(true); and then apply the force.
The reason maybe that the body has been put to sleep and is no longer active.