Qbasicnews.com

Full Version: Some advanced matrix stuff..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok this might be one of the hardest stuff to ever do in game programming theory.

What I am trying to do is, using matrixs as rotation(9 variables, not 3) I want the AI object's matrix to turn towards an X,Y,Z location by n amount of units. :wow:

The rotation matrix in my program uses the (0 to 15) matrix for OpenGL.
Hmmm mabie I can think up of polar coordination..

Mabie I'm getting somewhere, mabie not..

Anonymous

sorry, no idea how to do any of that stuff yet >.>
You could use a 3 * 3 arbitrary axis rotation. :*)
Also, you could make a temp vector using the two points, normalize it and build a matrix from that. It's exactly the way you would do it in 2d, except for the z axis. Wink