pub struct VolumeEvent {
pub volume: AssetId,
pub entered: bool,
}Expand description
Runtime-only event published by the physics system when something crossing
a TriggerVolume boundary passes the volume’s detects filter. entered is
true on the way in and false on the way out. BehaviorSystem reads these
from its Events<VolumeEvent> queue each step (one tick after the crossing,
since physics runs later in the schedule). World authors never declare
this type directly.
Fields§
§volume: AssetIdThe TriggerVolume that was crossed.
entered: booltrue on the way in, false on the way out.
Trait Implementations§
Source§impl Clone for VolumeEvent
impl Clone for VolumeEvent
Source§fn clone(&self) -> VolumeEvent
fn clone(&self) -> VolumeEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VolumeEvent
Auto Trait Implementations§
impl Freeze for VolumeEvent
impl RefUnwindSafe for VolumeEvent
impl Send for VolumeEvent
impl Sync for VolumeEvent
impl Unpin for VolumeEvent
impl UnsafeUnpin for VolumeEvent
impl UnwindSafe for VolumeEvent
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