HelloCube ForEach not behaving as expected
sterlingcrispin opened this issue · 1 comments
sterlingcrispin commented
Hey I'm trying to dive into this ECS project and understand it but some things are unclear to me
-
If I create a new 3D Object > Cube , then add ConvertToEntity and RotationSpeed_ForEach component and hit play it rotates just like the example , but if I do the exact same thing with a capsule nothing works. I can't find anything in the code that would explain this.
-
Why is the System not in the scene? How does RotationSpeedSystem_ForEach execute any code if its not a part of the hierarchy? Is there some new UI for assigning code to a scene for ECS?
joelpryde commented
- It should work correctly with a capsule. Are you sure it isn't just the a capsule looks the same when it is rotated on that axis?
- By default, systems will operate on all entities that have components that satisfy their queries. They can be treated as "global" for the most part. It is the set of components/entities that are created at authoring/run-time that decide which systems get run.