Enum ncollide2d::events::ContactEvent
source · pub enum ContactEvent {
Started(CollisionObjectHandle, CollisionObjectHandle),
Stopped(CollisionObjectHandle, CollisionObjectHandle),
}
Expand description
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§
source§impl Clone for ContactEvent
impl Clone for ContactEvent
source§fn clone(&self) -> ContactEvent
fn clone(&self) -> ContactEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContactEvent
impl Debug for ContactEvent
source§impl Hash for ContactEvent
impl Hash for ContactEvent
impl Copy for ContactEvent
Auto Trait Implementations§
impl RefUnwindSafe for ContactEvent
impl Send for ContactEvent
impl Sync for ContactEvent
impl Unpin for ContactEvent
impl UnwindSafe for ContactEvent
Blanket Implementations§
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.