In XNA you can get front/back/left/right vector of Matrix class. How get these vectors without XNA, through C++ using standart 4x4 matrix ? I dont understand what exactly they mean but found them very useful(in XNA).
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
|
I'm not familiar with XNA, but front/back/left/right(top, bottom?) vectors could make sense in the context of a rotation matrix. If that's what they are about, you could get them by simply doing a matrix multiplication with the unit vectors. i.e. multiplying Matrix * [0,0,1,1], Matrix * [0,1,0,1], Matrix * [1,0,0,1] would give you the z,y, and x axes' directions in untransformed space. (the 4th component is necessary, multiplying a 4x4 matrix with a 1x3 vector is not possible) |
|||
|
|
|
Im open XNA assembly with reflector and get answer.
|
||||
|
|