RavEngine
Loading...
Searching...
No Matches
physx::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.
 
virtual void onControllerHit (const PxControllersHit &hit)=0
 Called when current controller hits another controller.
 
virtual void onObstacleHit (const PxControllerObstacleHit &hit)=0
 Called when current controller hits a user-defined obstacle.
 

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

Member Function Documentation

◆ onControllerHit()

virtual void physx::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 physx::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 physx::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: