Enum physx_sys::PxQueryFlag
source · #[repr(i32)]pub enum PxQueryFlag {
Static = 1,
Dynamic = 2,
Prefilter = 4,
Postfilter = 8,
AnyHit = 16,
NoBlock = 32,
DisableHardcodedFilter = 64,
Reserved = 32_768,
}
Expand description
Filtering flags for scene queries.
Variants§
Static = 1
Traverse static shapes
Dynamic = 2
Traverse dynamic shapes
Prefilter = 4
Run the pre-intersection-test filter (see PxQueryFilterCallback::preFilter
)
Postfilter = 8
Run the post-intersection-test filter (see PxQueryFilterCallback::postFilter
)
AnyHit = 16
Abort traversal as soon as any hit is found and return it via callback.block. Helps query performance. Both eTOUCH and eBLOCK hitTypes are considered hits with this flag.
NoBlock = 32
All hits are reported as touching. Overrides eBLOCK returned from user filters with eTOUCH. This is also an optimization hint that may improve query performance.
DisableHardcodedFilter = 64
Same as eBATCH_QUERY_LEGACY_BEHAVIOUR, more explicit name making it clearer that this can also be used with regular/non-batched queries if needed.
Reserved = 32_768
Reserved for internal use
Trait Implementations§
source§impl Clone for PxQueryFlag
impl Clone for PxQueryFlag
source§fn clone(&self) -> PxQueryFlag
fn clone(&self) -> PxQueryFlag
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 PxQueryFlag
impl Debug for PxQueryFlag
source§impl PartialEq for PxQueryFlag
impl PartialEq for PxQueryFlag
source§fn eq(&self, other: &PxQueryFlag) -> bool
fn eq(&self, other: &PxQueryFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PxQueryFlag
impl Eq for PxQueryFlag
impl StructuralEq for PxQueryFlag
impl StructuralPartialEq for PxQueryFlag
Auto Trait Implementations§
impl RefUnwindSafe for PxQueryFlag
impl Send for PxQueryFlag
impl Sync for PxQueryFlag
impl Unpin for PxQueryFlag
impl UnwindSafe for PxQueryFlag
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