PxControllerBehaviorCallback

Defined in include/characterkinematic/PxControllerBehavior.h

class PxControllerBehaviorCallback

User behavior callback.

This behavior callback is called to customize the controller’s behavior w.r.t. touched shapes.

Public Functions

virtual PxControllerBehaviorFlags getBehaviorFlags(const PxShape &shape, const PxActor &actor) = 0

Retrieve behavior flags for a shape.

When the CCT touches a shape, the CCT’s behavior w.r.t. this shape can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior.

Note

See comments about deprecated functions at the start of this class

Parameters
  • shape[in] The shape the CCT is currently touching

  • actor[in] The actor owning the shape

Returns

Desired behavior flags for the given shape

virtual PxControllerBehaviorFlags getBehaviorFlags(const PxController &controller) = 0

Retrieve behavior flags for a controller.

When the CCT touches a controller, the CCT’s behavior w.r.t. this controller can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior.

Note

The flag PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT is not supported.

Note

See comments about deprecated functions at the start of this class

Parameters

controller[in] The controller the CCT is currently touching

Returns

Desired behavior flags for the given controller

virtual PxControllerBehaviorFlags getBehaviorFlags(const PxObstacle &obstacle) = 0

Retrieve behavior flags for an obstacle.

When the CCT touches an obstacle, the CCT’s behavior w.r.t. this obstacle can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior.

Note

See comments about deprecated functions at the start of this class

Parameters

obstacle[in] The obstacle the CCT is currently touching

Returns

Desired behavior flags for the given obstacle

Protected Functions

inline virtual ~PxControllerBehaviorCallback()