Trait avian3d::collision::collider::IntoCollider

source ·
pub trait IntoCollider<C: AnyCollider> {
    // Required method
    fn collider(&self) -> C;
}
Expand description

A trait for creating colliders from other types.

Required Methods§

source

fn collider(&self) -> C

Creates a collider from self.

Implementations on Foreign Types§

source§

impl IntoCollider<Collider> for BoxedPolyline3d

source§

impl IntoCollider<Collider> for Capsule3d

source§

impl IntoCollider<Collider> for Cone

source§

impl IntoCollider<Collider> for Cuboid

source§

impl IntoCollider<Collider> for Cylinder

source§

impl IntoCollider<Collider> for Line3d

source§

impl IntoCollider<Collider> for Plane3d

source§

impl IntoCollider<Collider> for Segment3d

source§

impl IntoCollider<Collider> for Sphere

source§

impl<const N: usize> IntoCollider<Collider> for Polyline3d<N>

Implementors§