RigidBody movement

Post Reply
theHU
Posts: 2
Joined: Sun Jun 05, 2011 4:44 pm

RigidBody movement

Post 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.
User avatar
Garibalde
Posts: 44
Joined: Fri Dec 18, 2009 6:06 pm
Location: Montreal
Contact:

Re: RigidBody movement

Post 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.
Post Reply