pub trait HasColliders3D: HasBoundingBox3D {
// Required methods
fn has_additional_colliders(&self) -> bool;
fn with_colliders(&self, f: &mut dyn FnMut(&Collider3D));
// Provided methods
fn collides_with_collider(&self, other: &Collider3D) -> bool { ... }
fn collides_with(&self, other: &dyn HasColliders3D) -> bool { ... }
}
Expand description
Trait for types that have 3D colliders
Required Methods§
Sourcefn has_additional_colliders(&self) -> bool
fn has_additional_colliders(&self) -> bool
Whether has colliders in addition to the bounding box, otherwise just use AABB
Sourcefn with_colliders(&self, f: &mut dyn FnMut(&Collider3D))
fn with_colliders(&self, f: &mut dyn FnMut(&Collider3D))
Apply function to each of the colliders