The docs for Component describe exactly what you need: https://docs.rs/bevy/latest/bevy/ecs/component/trait.Component.html
A data type that can be used to store data for an entity.
2 messages · Page 1 of 1 (latest)
The docs for Component describe exactly what you need: https://docs.rs/bevy/latest/bevy/ecs/component/trait.Component.html
A data type that can be used to store data for an entity.
And also what you're currently doing is having a component that internally has velocity, mesh and material, that's very different from having those components on the entity itself. I side the Player struct they're just data