Jump to content
  • Advertisement
Sign in to follow this  
TAlchemist

3d Movement - Orientation

This topic is 4770 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok i have gotten all objects in my game to use the movement code so that i can select a point in 3d space and have them turn to face it then move to it. They always go to the correct possition and can even get new target's mid movement. It seems to keep the player oriented correctly but when the little rat creatures < 4 other entities that just randomly select a point to move to > they flip and roll over and go scooting backwards or sideways or upside down. Any idea why one object would stay oriented and the others go spastic? All of the entities store there own location, the target location, there up, right, and forward vectors and a targetForward. The rotation matrix for each item is built out of the 3 axis vectors for each object and all axis's are normalized and rebuilt when ever they change to ensure ortho.

Share this post


Link to post
Share on other sites
Advertisement
i have made a patch to my system to make it look better. it resets the up to true up at the end of any move. But if you move in the oposite direction you where heading you roll over and slide on your but there.

Looks funny cause the tiny model is oriented incorrectly and she is doimng a superman around my world.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!