Following ECS and other design patterns, I’m wondering who’s the responsibility of adding an entity to the scene, into the right container? A “controller”?
Speaking of THREE.js, an
Object3D should be added (
.add() ) somewhere. Maybe in the root scene, maybe as a child in another object.
For example, let’s say an
EnemySpawnerSystem decides to spawn a new enemy / entity. How should this system know where to add it to the scene?
Do you have an opinion about this?