Trait Collision

Source
pub trait Collision<S> {
    // Required method
    fn detect(&self, obj: &S) -> Relation;
}
Expand description

Storing shape and position infomation, performs Collision Detection with the given S. Also, as a component, used as a marker in ECS queries.

Required Methods§

Source

fn detect(&self, obj: &S) -> Relation

Return collision detection result.

Implementors§