pub trait Shape: 'static + Debug {
// Required methods
fn as_ball(&self) -> Option<&Ball>;
fn as_cuboid(&self) -> Option<&Cuboid>;
fn calculate_aabb(&self, transform: Affine2) -> AABB;
}
pub trait Shape: 'static + Debug {
// Required methods
fn as_ball(&self) -> Option<&Ball>;
fn as_cuboid(&self) -> Option<&Cuboid>;
fn calculate_aabb(&self, transform: Affine2) -> AABB;
}