Public Member Functions | List of all members
PxSpatialLocationCallback Struct Referenceabstract

Callback class for raycast and sweep queries against PxSpatialIndex. More...

#include <PxSpatialIndex.h>

Public Member Functions

virtual PxAgain onHit (PxSpatialIndexItem &item, PxReal distance, PxReal &shrunkDistance)=0
 callback method invoked when a sweep or raycast query hits an item in a PxSpatialIndex structure. More...
 
virtual ~PxSpatialLocationCallback ()
 

Detailed Description

Callback class for raycast and sweep queries against PxSpatialIndex.

See Also
PxSpatialIndex

Constructor & Destructor Documentation

virtual PxSpatialLocationCallback::~PxSpatialLocationCallback ( )
inlinevirtual

Member Function Documentation

virtual PxAgain PxSpatialLocationCallback::onHit ( PxSpatialIndexItem item,
PxReal  distance,
PxReal shrunkDistance 
)
pure virtual

callback method invoked when a sweep or raycast query hits an item in a PxSpatialIndex structure.

Parameters
[in]itemthe item that was hit.
[in]distancethe current maximum distance of the query.
[out]shrunkDistancethe updated maximum distance of the query. This must be no more than the current maximum distance.
Returns
true if the query should continue, false if it should stop
See Also
PxAgain

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


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com