Let's say you have an entity class with these properties:
local Entity = {
Model = instance,
Physics = PhysicsClass, -- exposes methods for moving the entity + applying impulse
Movement = MovementClass, -- controls movement logic lol
Combat = CombatClass -- combat and special abilities
}
Seems simple, but once components start depending on eachother, it becomes so overwhelming. Like, if movement depends on physics in a certain method, but physics haven't loaded yet, it will just throw an error.
I know what's ECS, with components being just data, systems controlling logic and they're like loops in a stepped connection. But I don't think switching to a loop-based approach fits well for my project
** You are now Level 5! **