RavEngine
Loading...
Searching...
No Matches
CCDRaycastFilterCallback Class Reference
Inheritance diagram for CCDRaycastFilterCallback:
[legend]
Collaboration diagram for CCDRaycastFilterCallback:
[legend]

Public Member Functions

 CCDRaycastFilterCallback (PxRigidActor *actor, PxShape *shape)
 
virtual PxQueryHitType::Enum preFilter (const PxFilterData &, const PxShape *shape, const PxRigidActor *actor, PxHitFlags &)
 This filter callback is executed before the exact intersection test if PxQueryFlag::ePREFILTER flag was set.
 
virtual PxQueryHitType::Enum postFilter (const PxFilterData &, const PxQueryHit &, const PxShape *, const PxRigidActor *)
 This filter callback is executed if the exact intersection test returned true and PxQueryFlag::ePOSTFILTER flag was set.
 
- Public Member Functions inherited from physx::PxQueryFilterCallback
virtual PX_DEPRECATED PxQueryHitType::Enum postFilter (const PxFilterData &filterData, const PxQueryHit &hit)
 This filter callback is executed if the exact intersection test returned true and PxQueryFlag::ePOSTFILTER flag was set.
 
virtual ~PxQueryFilterCallback ()
 virtual destructor
 

Public Attributes

PxRigidActor * mActor
 
PxShape * mShape
 

Member Function Documentation

◆ postFilter()

virtual PxQueryHitType::Enum CCDRaycastFilterCallback::postFilter ( const PxFilterData &  filterData,
const PxQueryHit &  hit,
const PxShape *  shape,
const PxRigidActor *  actor 
)
inlinevirtual

This filter callback is executed if the exact intersection test returned true and PxQueryFlag::ePOSTFILTER flag was set.

Parameters
[in]filterDatacustom filter data of the query
[in]hitScene query hit information. faceIndex member is not valid for overlap queries. For sweep and raycast queries the hit information can be cast to #PxSweepHit and #PxRaycastHit respectively.
[in]shapeHit shape
[in]actorHit actor
Returns
the updated hit type for this hit (see #PxQueryHitType)

Reimplemented from physx::PxQueryFilterCallback.

◆ preFilter()

virtual PxQueryHitType::Enum CCDRaycastFilterCallback::preFilter ( const PxFilterData &  filterData,
const PxShape *  shape,
const PxRigidActor *  actor,
PxHitFlags &  queryFlags 
)
inlinevirtual

This filter callback is executed before the exact intersection test if PxQueryFlag::ePREFILTER flag was set.

Parameters
[in]filterDatacustom filter data specified as the query's filterData.data parameter.
[in]shapeA shape that has not yet passed the exact intersection test.
[in]actorThe shape's actor.
[in,out]queryFlagsscene query flags from the query's function call (only flags from PxHitFlag::eMODIFIABLE_FLAGS bitmask can be modified)
Returns
the updated type for this hit (see #PxQueryHitType)

Implements physx::PxQueryFilterCallback.


The documentation for this class was generated from the following file: