5 ms·
The "stateful" way you present is not at all how you would approach that problem in an ECS. I think you misunderstand what ECS refers to.
by jazzfool 5y ago
The "stateful" way you present is not at all how you would approach that problem in an ECS. I think you misunderstand what ECS refers to.
- ShrigmaMale 5y agoMaybe for ECS newbie, please say more on how you would approach this problem?
- jayd16 5y agoECS is closer to the second way that was described. Data is represented as arrays of structs (referred to as components), similar to what was described. Systems can mutate or read these structs. A physics system might change the position components while a decoupled rendering system might read that position components and the rendering details components to add draw commands.