Where should i organize my matrices in a 3D Game engine?
        Posted  
        
            by 
                Need4Sleep
            
        on Game Development
        
        See other posts from Game Development
        
            or by Need4Sleep
        
        
        
        Published on 2012-11-24T22:24:09Z
        Indexed on 
            2012/11/24
            23:21 UTC
        
        
        Read the original article
        Hit count: 401
        
I'm working with a group of people from around the world to create a game engine(and hopefully a game with it) within the next upcoming years. My first task was writing a camera class for the engine to use in order to add cameras to the scene, position and follow points in the scene. The problem i have is with using matrices for transformations in the class, should i keep matrices separate to each class? such as have the model matrix in the model class, camera matrix in the camera class, or have all matrices placed in one class/chuck? I could see pros and cons for each method, but i wanted to hear some input form a more professional standpoint.
© Game Development or respective owner