PxUserControllerHitReport Class Referenceabstract

User callback class for character controller events. More...

#include <PxController.h>

Public Member Functions

virtual void onShapeHit (const PxControllerShapeHit &hit)=0
 Called when current controller hits a shape. More...
 
virtual void onControllerHit (const PxControllersHit &hit)=0
 Called when current controller hits another controller. More...
 
virtual void onObstacleHit (const PxControllerObstacleHit &hit)=0
 Called when current controller hits a user-defined obstacle. More...
 

Protected Member Functions

virtual ~PxUserControllerHitReport ()
 

Detailed Description

User callback class for character controller events.

Note
Character controller hit reports are only generated when move is called.
See also
PxControllerDesc.callback

Constructor & Destructor Documentation

◆ ~PxUserControllerHitReport()

virtual PxUserControllerHitReport::~PxUserControllerHitReport ( )
inlineprotectedvirtual

Member Function Documentation

◆ onControllerHit()

virtual void PxUserControllerHitReport::onControllerHit ( const PxControllersHit hit)
pure virtual

Called when current controller hits another controller.

Parameters
[in]hitProvides information about the hit.
See also
PxControllersHit

◆ onObstacleHit()

virtual void PxUserControllerHitReport::onObstacleHit ( const PxControllerObstacleHit hit)
pure virtual

Called when current controller hits a user-defined obstacle.

Parameters
[in]hitProvides information about the hit.
See also
PxControllerObstacleHit PxObstacleContext

◆ onShapeHit()

virtual void PxUserControllerHitReport::onShapeHit ( const PxControllerShapeHit hit)
pure virtual

Called when current controller hits a shape.

This is called when the CCT moves and hits a shape. This will not be called when a moving shape hits a non-moving CCT.

Parameters
[in]hitProvides information about the hit.
See also
PxControllerShapeHit

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