Closed jcornaz closed 3 years ago
Resolves #36
This introduces layers.
One can now mark an enum as being the list of physics layers:
#[derive(PhysicsLayer)] enum MyGameLayer { World, Player, Enemy, HitBox, HurtBox, // etc. }
And then add the new CollisionLayers component to entities:
CollisionLayers
player_entity.insert( CollisionLayers::none() .with_group(Layer::Player) .with_mask(Layer::World), );
Resolves #36
This introduces layers.
One can now mark an enum as being the list of physics layers:
And then add the new
CollisionLayers
component to entities: