Trait heron::rapier_plugin::rapier::ncollide::pipeline::CollisionObjectSet[][src]

pub trait CollisionObjectSet<N> where
    N: RealField
{ type CollisionObject: CollisionObjectRef<N>; type CollisionObjectHandle: CollisionObjectHandle; pub fn collision_object(
        &self,
        handle: Self::CollisionObjectHandle
    ) -> Option<&Self::CollisionObject>;
pub fn foreach(
        &self,
        f: impl FnMut(Self::CollisionObjectHandle, &Self::CollisionObject)
    ); }

Trait implemented by sets of collision objects.

A set of collision object map a handle of type Self::CollisionObjectHandle with a collision object of type Self::CollisionObject.

Associated Types

type CollisionObject: CollisionObjectRef<N>[src]

Type of the collision object stored into this set.

type CollisionObjectHandle: CollisionObjectHandle[src]

Type of the handles identifying collision objects.

Loading content...

Required methods

pub fn collision_object(
    &self,
    handle: Self::CollisionObjectHandle
) -> Option<&Self::CollisionObject>
[src]

Gets the collision object identified by the given handle.

pub fn foreach(
    &self,
    f: impl FnMut(Self::CollisionObjectHandle, &Self::CollisionObject)
)
[src]

Applies a closure to every collision object (and their handle) stored into this set.

Loading content...

Implementors

Loading content...