[−][src]Trait oxygengine_physics_2d::prelude::ncollide2d::pipeline::object::CollisionObjectSet
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>
Type of the collision object stored into this set.
type CollisionObjectHandle: CollisionObjectHandle
Type of the handles identifying collision objects.
Required methods
fn collision_object(
&self,
handle: Self::CollisionObjectHandle
) -> Option<&Self::CollisionObject>
&self,
handle: Self::CollisionObjectHandle
) -> Option<&Self::CollisionObject>
Gets the collision object identified by the given handle
.
fn foreach(
&self,
f: impl FnMut(Self::CollisionObjectHandle, &Self::CollisionObject)
)
&self,
f: impl FnMut(Self::CollisionObjectHandle, &Self::CollisionObject)
)
Applies a closure to every collision object (and their handle) stored into this set.
Implementors
impl<N, Handle> CollisionObjectSet<N> for DefaultColliderSet<N, Handle> where
Handle: BodyHandle,
N: RealField,
[src]
Handle: BodyHandle,
N: RealField,
type CollisionObject = Collider<N, Handle>
type CollisionObjectHandle = Index
fn collision_object(
&self,
handle: <DefaultColliderSet<N, Handle> as CollisionObjectSet<N>>::CollisionObjectHandle
) -> Option<&<DefaultColliderSet<N, Handle> as CollisionObjectSet<N>>::CollisionObject>
[src]
&self,
handle: <DefaultColliderSet<N, Handle> as CollisionObjectSet<N>>::CollisionObjectHandle
) -> Option<&<DefaultColliderSet<N, Handle> as CollisionObjectSet<N>>::CollisionObject>
fn foreach(
&self,
f: impl FnMut(<DefaultColliderSet<N, Handle> as CollisionObjectSet<N>>::CollisionObjectHandle, &<DefaultColliderSet<N, Handle> as CollisionObjectSet<N>>::CollisionObject)
)
[src]
&self,
f: impl FnMut(<DefaultColliderSet<N, Handle> as CollisionObjectSet<N>>::CollisionObjectHandle, &<DefaultColliderSet<N, Handle> as CollisionObjectSet<N>>::CollisionObject)
)
impl<N, T> CollisionObjectSet<N> for CollisionObjectSlab<N, T> where
N: RealField,
[src]
N: RealField,
type CollisionObject = CollisionObject<N, T>
type CollisionObjectHandle = CollisionObjectSlabHandle
fn collision_object(
&self,
handle: <CollisionObjectSlab<N, T> as CollisionObjectSet<N>>::CollisionObjectHandle
) -> Option<&<CollisionObjectSlab<N, T> as CollisionObjectSet<N>>::CollisionObject>
[src]
&self,
handle: <CollisionObjectSlab<N, T> as CollisionObjectSet<N>>::CollisionObjectHandle
) -> Option<&<CollisionObjectSlab<N, T> as CollisionObjectSet<N>>::CollisionObject>
fn foreach(
&self,
f: impl FnMut(<CollisionObjectSlab<N, T> as CollisionObjectSet<N>>::CollisionObjectHandle, &<CollisionObjectSlab<N, T> as CollisionObjectSet<N>>::CollisionObject)
)
[src]
&self,
f: impl FnMut(<CollisionObjectSlab<N, T> as CollisionObjectSet<N>>::CollisionObjectHandle, &<CollisionObjectSlab<N, T> as CollisionObjectSet<N>>::CollisionObject)
)