PxSpatialLocationCallback Struct Reference
[Physics]

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

#include <PxSpatialIndex.h>

List of all members.

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.
virtual ~PxSpatialLocationCallback ()


Detailed Description

Callback class for raycast and sweep queries against PxSpatialIndex.

Deprecated:
Spatial index feature has been deprecated in PhysX version 3.4
See also:
PxSpatialIndex

Constructor & Destructor Documentation

virtual PxSpatialLocationCallback::~PxSpatialLocationCallback (  )  [inline, virtual]


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] item the item that was hit.
[in] distance the current maximum distance of the query.
[out] shrunkDistance the 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-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com