ceacy
21-11-2006 06:33:29
Hi,
I'm trying to make a character walking, with a first person view. I followed this tutorial, but there are several things i don't understand :
1. Where does this :
come from, and what does it mean ? I mean, why "cosinus" and "sinus" ? And why not only a component in X, since it's the rotation axis ?
2. How to strafe left and right ? Can i use a "Ball and Socket" joint instead of a hinge, joint, to have the feet able to rotate around x and z ?
3. I read using addTorque() instead of setAngularVelocity() would be better ; if so, when could i find documentation on it ? I read the samples (quickly), but i don't get everything.
4. Since the world is not a singleton any more, when should i delete it ? After, before the stepper ? Should i detach all ogreode objets and destroy them before that ?
Thanks,
Ceacy.
I'm trying to make a character walking, with a first person view. I followed this tutorial, but there are several things i don't understand :
1. Where does this :
feet->setAngularVelocity(q*Ogre::Vector3(10*cos(1),0,10*sin(1)));come from, and what does it mean ? I mean, why "cosinus" and "sinus" ? And why not only a component in X, since it's the rotation axis ?
2. How to strafe left and right ? Can i use a "Ball and Socket" joint instead of a hinge, joint, to have the feet able to rotate around x and z ?
3. I read using addTorque() instead of setAngularVelocity() would be better ; if so, when could i find documentation on it ? I read the samples (quickly), but i don't get everything.
4. Since the world is not a singleton any more, when should i delete it ? After, before the stepper ? Should i detach all ogreode objets and destroy them before that ?
Thanks,
Ceacy.