Make component based #3
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Daniel/Engine_silk.NET#3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For the real engine, I should go with a component based approach (like Unity, ThinMatrix and others).
This means, a Mesh is a component, the position/transform is a (fixed) component etc.
Following the Unity analogy, every game object has a list of components. Each GameObject will be rendered (with at least the position, scale, rotation) and everything the components say. If an object has the Component "Mesh" the mesh will be rendered for example. The mesh therefore needs a material which in turn needs a shader (think about this once the engine is implemented)
This can further be used to easily implement logic, as on each update, the update of each component of every object is called