Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

peckerpeck

Data Encapsulation

This topic is 5589 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

In your game world objects, do most of you guys save your Transform data simply in matrix format or more flat text. e.g. Do you store your translation matrix or just a vector of x,y,z coords?

Share this post


Link to post
Share on other sites
Advertisement
Put the rotation info in a matrix, put the translation info in a vector, and put the scale component in a float. The put a member function in the object that will return a matrix that combines all of the info into one matrix... This makes it a lot easier to get/modify each individual component of the transform individually.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!