[][src]Enum resphys::ContactEvent

pub enum ContactEvent<T> {
    OverlapStarted(ColliderHandleColliderHandle, T, T),
    OverlapEnded(ColliderHandleColliderHandle, T, T),
    CollisionStarted(ColliderHandleColliderHandle, T, T),
    CollisionEnded(ColliderHandleColliderHandle, T, T),
}

Event generated by the collision engine.
In case of an overlap between a solid body and sensor the solid body is guaranteed to be the first handle.

Variants

OverlapStarted(ColliderHandleColliderHandle, T, T)
OverlapEnded(ColliderHandleColliderHandle, T, T)
CollisionStarted(ColliderHandleColliderHandle, T, T)
CollisionEnded(ColliderHandleColliderHandle, T, T)

Implementations

impl<T: Copy> ContactEvent<T>[src]

pub fn new(
    h1: ColliderHandle,
    collider1: &Collider<T>,
    h2: ColliderHandle,
    collider2: &Collider<T>
) -> ContactEvent<T>
[src]

Trait Implementations

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

impl<T: Copy> Copy for ContactEvent<T>[src]

impl<T: Debug> Debug for ContactEvent<T>[src]

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for ContactEvent<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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.