PxSceneQueryFilterData Struct Reference
[Scenequery]
Scene query filtering data.
More...
#include <PxSceneQueryFiltering.h>
Collaboration diagram for PxSceneQueryFilterData:
![Collaboration graph](structPxSceneQueryFilterData__coll__graph.png)
Public Member Functions | |
PX_INLINE | PxSceneQueryFilterData () |
constructor sets to default | |
PX_INLINE | PxSceneQueryFilterData (const PxFilterData &fd, PxSceneQueryFilterFlags f) |
constructor to set properties | |
PX_INLINE | PxSceneQueryFilterData (PxSceneQueryFilterFlags f) |
constructor to set filter flags only | |
Public Attributes | |
PxFilterData | data |
Filter data associated with the scene query. | |
PxSceneQueryFilterFlags | flags |
Filter flags (see PxSceneQueryFilterFlags). |
Detailed Description
Scene query filtering data.When the scene graph traversal determines that a shape intersects, filtering is performed.
Filtering is performed in the following order:
- For non-batched queries only:
If the data field is non-zero, and the bitwise-AND value of data AND the shape's queryFilterData is zero, the shape is skipped - If the filter callbacks are enabled in the flags field (see PxSceneQueryFilterFlags) they will get invoked accordingly.
- If neither PxSceneQueryFilterFlag::ePREFILTER or PxSceneQueryFilterFlag::ePOSTFILTER is set, the hit is assumed to be of type PxSceneQueryHitType::eBLOCK for single hit queries and of type PxSceneQueryHitType::eTOUCH for multi hit queries.
- See also:
- PxScene.raycastAny PxScene.raycastSingle PxScene.raycastMultiple PxScene.sweepSingle PxScene.sweepMultiple
Constructor & Destructor Documentation
PX_INLINE PxSceneQueryFilterData::PxSceneQueryFilterData | ( | ) | [inline] |
constructor sets to default
PX_INLINE PxSceneQueryFilterData::PxSceneQueryFilterData | ( | const PxFilterData & | fd, | |
PxSceneQueryFilterFlags | f | |||
) | [inline] |
constructor to set properties
PX_INLINE PxSceneQueryFilterData::PxSceneQueryFilterData | ( | PxSceneQueryFilterFlags | f | ) | [inline] |
constructor to set filter flags only
Member Data Documentation
Filter data associated with the scene query.
Filter flags (see PxSceneQueryFilterFlags).
The documentation for this struct was generated from the following file:
Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com