Some basic questions

BilalMehdi

01-01-2008 19:19:12

Hi...

I want to know

1. Can we use defaultRigidBody->getBulletRigidBody->applyTorque() for dynamic body. I tried it, but was not working. I dont know if there was some mistake that I made, or we just cannot do that

2. How can we set angular velocity of a rigid body

If anyone knows answer to any of these questions, please reply

Chaster

03-01-2008 22:20:19

Hi...

I want to know

1. Can we use defaultRigidBody->getBulletRigidBody->applyTorque() for dynamic body. I tried it, but was not working. I dont know if there was some mistake that I made, or we just cannot do that


Yes, you should be able to do that. Make sure your body isn't sleeping before you do that. I had a problem with that not working which was driving me nuts until I figured out that the body was going to sleep before I was applying the torque.



2. How can we set angular velocity of a rigid body



OgreBulletDynamics::RigidBody::setAngularVelocity()


If anyone knows answer to any of these questions, please reply


Take a look at OgreBulletDynamicsRigidBody.h too. Hope that helps.

Chaster

BilalMehdi

05-01-2008 21:20:47

Sorry my mistake... I just was not applying enough torque to cause any motion

But still...thanx a lot