pub enum SensorPolicy {
Exclude,
Include,
Only,
}Expand description
Which colliders participate in a query. Layers and the ignored body still
apply to every policy. See QueryOptions::sensors for usage.
Variants§
Exclude
Query solid colliders only, matching the original cast methods.
Include
Query both solid colliders and sensors.
Only
Query sensors only, useful for selecting trigger volumes.
Trait Implementations§
Source§impl Clone for SensorPolicy
impl Clone for SensorPolicy
Source§fn clone(&self) -> SensorPolicy
fn clone(&self) -> SensorPolicy
Returns a duplicate 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 SensorPolicy
impl Debug for SensorPolicy
Source§impl Default for SensorPolicy
impl Default for SensorPolicy
Source§fn default() -> SensorPolicy
fn default() -> SensorPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for SensorPolicy
impl PartialEq for SensorPolicy
impl Copy for SensorPolicy
impl Eq for SensorPolicy
impl StructuralPartialEq for SensorPolicy
Auto Trait Implementations§
impl Freeze for SensorPolicy
impl RefUnwindSafe for SensorPolicy
impl Send for SensorPolicy
impl Sync for SensorPolicy
impl Unpin for SensorPolicy
impl UnwindSafe for SensorPolicy
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