Struct lnkit::prelude::IntersectionEvent [−][src]
pub struct IntersectionEvent { pub collider1: ColliderHandle, pub collider2: ColliderHandle, pub intersecting: bool, }
Events occurring when two collision objects start or stop being in close proximity, contact, or disjoint.
Fields
collider1: ColliderHandle
The first collider to which the proximity event applies.
collider2: ColliderHandle
The second collider to which the proximity event applies.
intersecting: bool
Are the two colliders intersecting?
Implementations
impl IntersectionEvent
[src]
impl IntersectionEvent
[src]pub fn new(
collider1: ColliderHandle,
collider2: ColliderHandle,
intersecting: bool
) -> IntersectionEvent
[src]
collider1: ColliderHandle,
collider2: ColliderHandle,
intersecting: bool
) -> IntersectionEvent
Instantiates a new proximity event.
Panics if prev_status
is equal to new_status
.
Trait Implementations
impl Clone for IntersectionEvent
[src]
impl Clone for IntersectionEvent
[src]pub fn clone(&self) -> IntersectionEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for IntersectionEvent
[src]
impl Copy for IntersectionEvent
[src]Auto Trait Implementations
impl RefUnwindSafe for IntersectionEvent
impl RefUnwindSafe for IntersectionEvent
impl Send for IntersectionEvent
impl Send for IntersectionEvent
impl Sync for IntersectionEvent
impl Sync for IntersectionEvent
impl Unpin for IntersectionEvent
impl Unpin for IntersectionEvent
impl UnwindSafe for IntersectionEvent
impl UnwindSafe for IntersectionEvent
Blanket Implementations
impl<T, U> Cast<U> for T where
U: FromCast<T>,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> FromBits<T> for T
impl<T> FromBits<T> for T
pub fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
pub fn into_bits(self) -> U
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,