mamairaja
27-10-2009 17:32:15
Hi
I have 2 questions regard to physics
1. I have created a body with following RigidBodyDescription
I have tried to jump the character using addForce method. The problem is I had to apply a huge force to make the body jump a little y directional distance.
Why it requires that much amount of force Newton 30000 for 70 kg mass?
2. The second one is related to nxogre.
If I need to rotate the body for a particular distance what is the method I have to use. I have not managed to find a way to use Quaternion with a OGRE3DBody. Even if i can use setAngularVelocity how to stop the body when it reached that particular direction?
Thank you in advance
I have 2 questions regard to physics
1. I have created a body with following RigidBodyDescription
NxOgre::RigidBodyDescription enemyPhysicsDescription;
enemyPhysicsDescription.mMass = 70.0f;
enemyPhysicsDescription.mBodyFlags |= NxOgre::Enums::BodyFlags::BodyFlags_FreezeRotationZ;
enemyPhysicsDescription.mBodyFlags |= NxOgre::Enums::BodyFlags::BodyFlags_FreezeRotationX;
I have tried to jump the character using addForce method. The problem is I had to apply a huge force to make the body jump a little y directional distance.
enemyBody->addForce(NxOgre::Vec3(0,30000,0));
Why it requires that much amount of force Newton 30000 for 70 kg mass?
2. The second one is related to nxogre.
If I need to rotate the body for a particular distance what is the method I have to use. I have not managed to find a way to use Quaternion with a OGRE3DBody. Even if i can use setAngularVelocity how to stop the body when it reached that particular direction?
Thank you in advance