[][src]Struct ncollide3d::events::ProximityEvent

pub struct ProximityEvent {
    pub collider1: CollisionObjectHandle,
    pub collider2: CollisionObjectHandle,
    pub prev_status: Proximity,
    pub new_status: Proximity,
}

Events occuring when two collision objects start or stop being in close proximity, contact, or disjoint.

Fields

collider1: CollisionObjectHandle

The first collider to which the proximity event applies.

collider2: CollisionObjectHandle

The second collider to which the proximity event applies.

prev_status: Proximity

The previous state of proximity between the two collision objects.

new_status: Proximity

The new state of proximity between the two collision objects.

Methods

impl ProximityEvent[src]

pub fn new(
    collider1: CollisionObjectHandle,
    collider2: CollisionObjectHandle,
    prev_status: Proximity,
    new_status: Proximity
) -> ProximityEvent
[src]

Instaciates a new proximity event.

Panics if prev_status is equal to new_status.

Trait Implementations

impl Copy for ProximityEvent[src]

impl Clone for ProximityEvent[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ProximityEvent[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<T> Same for T

type Output = T

Should always be Self