Collision

Trait Collision 

Source
pub trait Collision<Rhs> {
    // Required method
    fn collides(&self, rhs: &Rhs) -> Option<Contact>;
}
Expand description

Trait for determining the collision between two shapes

Required Methods§

Source

fn collides(&self, rhs: &Rhs) -> Option<Contact>

Whether this shape collides with the other, and where

Implementors§