Sign in to follow this  
TAlchemist

3d Movement - Orientation

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this