Data Encapsulation
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?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement