3d Movement - Orientation
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.
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.
Looks funny cause the tiny model is oriented incorrectly and she is doimng a superman around my world.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement