Trait moon_engine::collider::Collider
source · [−]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
fn get_bounding_box(&self) -> AABB
fn get_bounding_box(&self) -> AABB
Get the bounding box of a Collider as an AABB
.
fn get_center(&self) -> Point
fn get_center(&self) -> Point
Get the center of the Collider as a Point
.