Enum ncollide2d::events::ContactEvent
[−]
[src]
pub enum ContactEvent { Started(CollisionObjectHandle, CollisionObjectHandle), Stopped(CollisionObjectHandle, CollisionObjectHandle), }
Events occuring when two collision objects start or stop being in contact (or penetration).
Variants
Started(CollisionObjectHandle, CollisionObjectHandle)
Event occuring when two collision objects start being in contact.
This event is generated whenever the narrow-phase finds a contact between two collision objects that did not have any contact at the last update.
Stopped(CollisionObjectHandle, CollisionObjectHandle)
Event occuring when two collision objects stop being in contact.
This event is generated whenever the narrow-phase fails to find any contact between two collision objects thit did have at least one contact at the last update.
Trait Implementations
impl Copy for ContactEvent
[src]
impl Clone for ContactEvent
[src]
fn clone(&self) -> ContactEvent
[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
impl Hash for ContactEvent
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more