Trait Collider

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

The Collider trait is implemented by different Colliders.

Required Methods§

Source

fn get_bounding_box(&self) -> AABB

Get the bounding box of a Collider as an AABB.

Source

fn get_center(&self) -> Point

Get the center of the Collider as a Point.

Implementors§