PxUserControllerHitReport

Defined in include/characterkinematic/PxController.h

class PxUserControllerHitReport

User callback class for character controller events.

See also

PxControllerDesc.callback

Note

Character controller hit reports are only generated when move is called.

Public Functions

virtual void onShapeHit(const PxControllerShapeHit &hit) = 0

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.

See also

PxControllerShapeHit

Parameters

hit[in] Provides information about the hit.

virtual void onControllerHit(const PxControllersHit &hit) = 0

Called when current controller hits another controller.

See also

PxControllersHit

Parameters

hit[in] Provides information about the hit.

virtual void onObstacleHit(const PxControllerObstacleHit &hit) = 0

Called when current controller hits a user-defined obstacle.

See also

PxControllerObstacleHit PxObstacleContext

Parameters

hit[in] Provides information about the hit.

Protected Functions

inline virtual ~PxUserControllerHitReport()