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§
Sourcefn get_bounding_box(&self) -> AABB
fn get_bounding_box(&self) -> AABB
Get the bounding box of a Collider as an AABB
.
Sourcefn get_center(&self) -> Point
fn get_center(&self) -> Point
Get the center of the Collider as a Point
.