Data Encapsulation

Started by
0 comments, last by peckerpeck 21 years, 2 months ago
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?
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.
---------------------------------------------------There are 10 kinds of people in the world:Those that understand binary, and those that dont...Mage

This topic is closed to new replies.

Advertisement