Public Member Functions | Protected Member Functions | List of all members
PxControllerBehaviorCallback Class Referenceabstract

User behavior callback. More...

#include <PxControllerBehavior.h>

Public Member Functions

virtual PxControllerBehaviorFlags getBehaviorFlags (const PxShape &shape, const PxActor &actor)=0
 Retrieve behavior flags for a shape. More...
 
virtual PxControllerBehaviorFlags getBehaviorFlags (const PxController &controller)=0
 Retrieve behavior flags for a controller. More...
 
virtual PxControllerBehaviorFlags getBehaviorFlags (const PxObstacle &obstacle)=0
 Retrieve behavior flags for an obstacle. More...
 

Protected Member Functions

virtual ~PxControllerBehaviorCallback ()
 

Detailed Description

User behavior callback.

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

Constructor & Destructor Documentation

virtual PxControllerBehaviorCallback::~PxControllerBehaviorCallback ( )
inlineprotectedvirtual

Member Function Documentation

virtual PxControllerBehaviorFlags PxControllerBehaviorCallback::getBehaviorFlags ( const PxShape shape,
const PxActor actor 
)
pure virtual

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
[in]shapeThe shape the CCT is currently touching
[in]actorThe actor owning the shape
Returns
Desired behavior flags for the given shape
See Also
PxControllerBehaviorFlag
virtual PxControllerBehaviorFlags PxControllerBehaviorCallback::getBehaviorFlags ( const PxController controller)
pure virtual

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.
See comments about deprecated functions at the start of this class
Parameters
[in]controllerThe controller the CCT is currently touching
Returns
Desired behavior flags for the given controller
See Also
PxControllerBehaviorFlag
virtual PxControllerBehaviorFlags PxControllerBehaviorCallback::getBehaviorFlags ( const PxObstacle obstacle)
pure virtual

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
[in]obstacleThe obstacle the CCT is currently touching
Returns
Desired behavior flags for the given obstacle
See Also
PxControllerBehaviorFlag

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


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com