I'm building my first component/entity engine and I'm not so sure about some of my choices. I'm here asking suggestions on my first doubt.
I draw objects with 2 different behaviours:
1) Position driven by Physics.
2) Position defined by other logics.
At the moment I've only built the first kind of object adding to some entities a
Render component (which contains information about the sprite to draw) and a
Physic component which contains body information.
Rendering system just attaches
Render components sprites to the main view and the
Physic System takes each entity that owns a
Physic component and defines the sprite position for each entity.
Is it a valid choice to access (and modify) Sprites positions directly through the Physic System?
In your opinion, for the second type of object, should I manage the sprite position using a third component which is responsible only for that? Is it a valid solution or I'm totally wrong?
I'm a bit confused about how to manage logics and positions with this kind of system... It seems a bit overwhelming to create a component for every behaviour that I need to define.