pub trait Collider {
    fn get_bounding_box(&self) -> AABB;
    fn get_center(&self) -> Point;
}
Expand description

The Collider trait is implemented by different Colliders.

Required Methods

Get the bounding box of a Collider as an AABB.

Get the center of the Collider as a Point.

Implementors