Hi,
I am currently trying to create some libraries making the life easier with MonoGame. I know there is MonoGame.Extended and thats totally fine, but as I am actually a very Newbie to Game Development and Math at Game Development-Level I want to understand what is going on in behind of all this. So I am creating my own libaries where I can understand how to do things and stuff.
But now I am not entirely sure how things are good to do and how things are not good to do… Additionally I am new to matrices, transforms, and all that stuff.
I know a Transform is a translation, rotation and scalation so that is easy and I know how to make a TransformMatrix out of those but how do i properly use those matrices.
For example, in my game i want a camera which has a transform. But i also implemented an entity component system where entities get a TransformComponent which also contains Translation, rotation and scalation.
Now I thought, when i have functions like Move / Rotate / Zoom in the camera, how would they be applied on the entities which has its own transform matrix.
Is it okay to simply add camera transform + entity transform? Basically this means, every entity has to add its transform to the camera transform to have functionality like zoom , scale or rotate by using the camera right?
The system behind that, is it okay to do it like that?
Maybe you can share some thoughts how you would realize that. My aim are simply 2d platformer games nothing more.
Thanks