PxQueryFilterData Struct Reference
[Scenequery]
Scene query filtering data.
More...
#include <PxQueryFiltering.h>
Collaboration diagram for PxQueryFilterData:
Public Member Functions | |
PX_INLINE | PxQueryFilterData () |
default constructor | |
PX_INLINE | PxQueryFilterData (const PxFilterData &fd, PxQueryFlags f) |
constructor to set both filter data and filter flags | |
PX_INLINE | PxQueryFilterData (PxQueryFlags f) |
constructor to set filter flags only | |
Public Attributes | |
PxFilterData | data |
Filter data associated with the scene query. | |
PxQueryFlags | flags |
Filter flags (see PxQueryFlags). | |
PX_DEPRECATED PxClientID | clientId |
ID of the client doing the query (see PxScene.createClient()). |
Detailed Description
Scene query filtering data.Whenever the scene query intersects a shape, 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 filter callbacks are enabled in flags field (see PxQueryFlags) they will get invoked accordingly.
- If neither PxQueryFlag::ePREFILTER or PxQueryFlag::ePOSTFILTER is set, the hit defaults to type PxQueryHitType::eBLOCK when the value of PxHitCallback::nbTouches provided with the query is zero and to type PxQueryHitType::eTOUCH when PxHitCallback::nbTouches is positive.
- See also:
- PxScene.raycast PxScene.sweep PxScene.overlap PxBatchQuery.raycast PxBatchQuery.sweep PxBatchQuery.overlap PxQueryFlag::eANY_HIT
Constructor & Destructor Documentation
PX_INLINE PxQueryFilterData::PxQueryFilterData | ( | ) | [inline, explicit] |
default constructor
PX_INLINE PxQueryFilterData::PxQueryFilterData | ( | const PxFilterData & | fd, | |
PxQueryFlags | f | |||
) | [inline, explicit] |
constructor to set both filter data and filter flags
PX_INLINE PxQueryFilterData::PxQueryFilterData | ( | PxQueryFlags | f | ) | [inline, explicit] |
constructor to set filter flags only
Member Data Documentation
PX_DEPRECATED PxClientID PxQueryFilterData::clientId |
ID of the client doing the query (see PxScene.createClient()).
Filter data associated with the scene query.
Filter flags (see PxQueryFlags).
The documentation for this struct was generated from the following file:
Copyright © 2008-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com