Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some advanced matrix stuff..
#1
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.
Reply
#2
Hmmm mabie I can think up of polar coordination..

Mabie I'm getting somewhere, mabie not..
Reply
#3
sorry, no idea how to do any of that stuff yet >.>
Reply
#4
You could use a 3 * 3 arbitrary axis rotation. :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#5
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)