Hacker News new | ask | show | jobs
by ShrigmaMale 1639 days ago
Maybe for ECS newbie, please say more on how you would approach this problem?
1 comments

ECS 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.