[][src]Struct rapier3d::geometry::InteractionGraph

pub struct InteractionGraph<T> { /* fields omitted */ }

A graph where nodes are collision objects and edges are contact or proximity algorithms.

Implementations

impl<T> InteractionGraph<T>[src]

pub fn new() -> Self[src]

Creates a new empty collection of collision objects.

pub fn raw_graph(&self) -> &Graph<ColliderHandle, T>[src]

The underlying raw graph structure of this interaction graph.

pub fn interactions(&self) -> impl Iterator<Item = &T>[src]

All the interactions on this graph.

pub fn interaction_pair(
    &self,
    id1: ColliderGraphIndex,
    id2: ColliderGraphIndex
) -> Option<(ColliderHandle, ColliderHandle, &T)>
[src]

The interaction between the two collision objects identified by their graph index.

pub fn interaction_pair_mut(
    &mut self,
    id1: ColliderGraphIndex,
    id2: ColliderGraphIndex
) -> Option<(ColliderHandle, ColliderHandle, &mut T)>
[src]

The interaction between the two collision objects identified by their graph index.

pub fn interactions_with(
    &self,
    id: ColliderGraphIndex
) -> impl Iterator<Item = (ColliderHandle, ColliderHandle, &T)>
[src]

All the interaction involving the collision object with graph index id.

pub fn index_interaction(
    &self,
    id: TemporaryInteractionIndex
) -> Option<(ColliderHandle, ColliderHandle, &T)>
[src]

Gets the interaction with the given index.

pub fn interactions_with_mut(
    &mut self,
    id: ColliderGraphIndex
) -> impl Iterator<Item = (ColliderHandle, ColliderHandle, TemporaryInteractionIndex, &mut T)>
[src]

All the mutable references to interactions involving the collision object with graph index id.

Trait Implementations

impl<T: Clone> Clone for InteractionGraph<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for InteractionGraph<T> where
    T: RefUnwindSafe

impl<T> Send for InteractionGraph<T> where
    T: Send

impl<T> Sync for InteractionGraph<T> where
    T: Sync

impl<T> Unpin for InteractionGraph<T> where
    T: Unpin

impl<T> UnwindSafe for InteractionGraph<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,