• Advertisement
Sign in to follow this  

Right, Up and Forward vectors in DirectXMath

Recommended Posts

If we for example look at vector/matrix math in Unity3D or in SimpleMath (DirectXTK) we can see that they give us the Right, Up, Forward and Left, Down, Backward vectors.
DirectXMath doesn't have this implemented. How could I extract for example Forward vector (in DirectXMath) from some matrix that stores some object position, rotation,...?

I assume that Position vector (Translation) is stored in m41, m42, 43 in DirectXMath, since it uses row-major matrix, but extracting Forward vector seems a bit more difficult to extract.

Share this post


Link to post
Share on other sites
Advertisement

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  

  • Advertisement