pub struct TriggerExit {
pub trigger: Entity,
pub other: Entity,
}Expand description
A collider stopped overlapping a trigger, in this tick, or one of the
two left: lost its collider or its Transform, or was despawned. The
system nadir::triggers sends it, in the tick stage PostMovement.
Either entity may be dead by then: check with World::is_alive.
Fields§
§trigger: EntityThe entity with the trigger.
other: EntityThe entity whose collider it detected.
Trait Implementations§
Source§impl Clone for TriggerExit
impl Clone for TriggerExit
impl Copy for TriggerExit
Source§impl Debug for TriggerExit
impl Debug for TriggerExit
impl Eq for TriggerExit
Source§impl PartialEq for TriggerExit
impl PartialEq for TriggerExit
impl StructuralPartialEq for TriggerExit
Auto Trait Implementations§
impl Forget for TriggerExit
impl Freeze for TriggerExit
impl Move for TriggerExit
impl RefUnwindSafe for TriggerExit
impl Send for TriggerExit
impl Sync for TriggerExit
impl Unpin for TriggerExit
impl UnsafeUnpin for TriggerExit
impl UnwindSafe for TriggerExit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more