Function zengine_physics::collision_system
source · [−]pub fn collision_system(
query: Query<'_, (Entity, &Shape2D, &Transform)>,
collision_event: EventPublisher<'_, Collision>,
already_collided: Local<'_, FxHashSet<(Entity, Entity)>>
)
Expand description
A simple collision system between Shape2D
This system doesn’t take in consideration the entity transform rotation for rectangular shape