[][src]Trait rust_3d::HasColliders3D

pub trait HasColliders3D: HasBoundingBox3D {
    fn has_additional_colliders(&self) -> bool;
fn with_colliders(&self, f: &mut dyn FnMut(&Collider3D)); fn collides_with_collider(&self, other: &Collider3D) -> bool { ... }
fn collides_with(&self, other: &dyn HasColliders3D) -> bool { ... } }

Trait for types that have 3D colliders

Required methods

fn has_additional_colliders(&self) -> bool

Whether has colliders in addition to the bounding box, otherwise just use AABB

fn with_colliders(&self, f: &mut dyn FnMut(&Collider3D))

Apply function to each of the colliders

Loading content...

Provided methods

fn collides_with_collider(&self, other: &Collider3D) -> bool

fn collides_with(&self, other: &dyn HasColliders3D) -> bool

Loading content...

Implementors

impl HasColliders3D for Collider3D[src]

Loading content...