Closed BlidDev closed 2 years ago
Simply join over the components you care about and iterate through them: https://specs.amethyst.rs/docs/tutorials/08_join.html#joining-components.
I apparently didn't understand the idea of SystemData fully yet. Thanks for your time nevertheless!
Hi, I have a system called
BulletSystem
that takesTransform
andBulletData
components. In this system I need to check if the bullet entity collides with any entity that has theTransform
andEnemyData
components. Is there anything likeview
inentt
that just gives you a list of the entities with the required components and the ability to retrieve their components? Because I didn't see anyware a way to do that within a system.Thanks!