Struct ncollide2d::events::ProximityEvent[][src]

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

The first collider to which the proximity event applies.

The second collider to which the proximity event applies.

The previous state of proximity between the two collision objects.

The new state of proximity between the two collision objects.

Methods

impl 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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ProximityEvent
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations