Enum physx_sys::PxQueryFlag
source · #[repr(i32)]
pub enum PxQueryFlag {
Static,
Dynamic,
Prefilter,
Postfilter,
AnyHit,
NoBlock,
DisableHardcodedFilter,
Reserved,
}Expand description
Filtering flags for scene queries.
Variants§
Static
Traverse static shapes
Dynamic
Traverse dynamic shapes
Prefilter
Run the pre-intersection-test filter (see PxQueryFilterCallback::preFilter)
Postfilter
Run the post-intersection-test filter (see PxQueryFilterCallback::postFilter)
AnyHit
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
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
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
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<PxQueryFlag> for PxQueryFlag
impl PartialEq<PxQueryFlag> 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 ==.