Struct ncollide3d::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
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]
collider1: CollisionObjectHandle,
collider2: CollisionObjectHandle,
prev_status: Proximity,
new_status: Proximity
) -> ProximityEvent
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(&self) -> ProximityEvent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more