Jump to content
  • Advertisement
Sign in to follow this  
acid2

Time i got matrices correct!

This topic is 5405 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, Now that I have the basics of my engine down (only position setting and rotation) down, I feel that i should get my matrix maths done proeprly (which I don't think im doing at the moment). Here are my questions... 1) Should I store the position of my object as a 3d-vector or a translation matrix? 2) How should rotation information be stored? I currently use a 3d vector that stores the angles (0, 180, 360, 540 etc I was going to implant limits first). 3) How do i move a matrix. Eg, I rotate the camera, and translate on the z-axis and the camera moves the direction it is facing. I was currently doing this by doing Final = (Translate[CurrentPosition] * Rotate[TheCurrentRotation]) * MoveMatrix. Any other advice very much appreciated! aCiD2

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!