Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: RigidBody movement
PostPosted: Thu Sep 08, 2011 9:33 pm 
Offline

Joined: Sun Jun 05, 2011 4:44 pm
Posts: 2
*** 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:
player.getRigidBody()->applyCentralForce(btVector3(0,100,0));


its nearly the same as in the GettingStarted-Tutorial.


Top
 Profile  
 
 Post subject: Re: RigidBody movement
PostPosted: Sat Sep 10, 2011 2:09 am 
Offline
User avatar

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group