Character
Classes
PxBoxController: Box character controller.
PxBoxControllerDesc: Descriptor for a box character controller.
PxBoxObstacle: A box obstacle.
PxCapsuleController: A capsule character controller.
PxCapsuleControllerDesc: A descriptor for a capsule character controller.
PxCapsuleObstacle: A capsule obstacle.
PxController: Base class for character controllers.
PxControllerBehaviorCallback: User behavior callback.
PxControllerDesc: Descriptor class for a character controller.
PxControllerFilterCallback: Dedicated filtering callback for CCT vs CCT.
PxControllerFilters: Filtering data for "move" call.
PxControllerManager: Manages an array of character controllers.
PxObstacle: Base class for obstacles.
PxObstacleContext: Context class for obstacles.
PxUserControllerHitReport: User callback class for character controller events.
Macros
Functions
PxBoxControllerDesc::PxBoxControllerDesc(): constructor sets to default.
PxBoxControllerDesc::PxBoxControllerDesc(const PxBoxControllerDesc &): copy constructor.
PxBoxControllerDesc::isValid() const: returns true if the current settings are valid
PxBoxControllerDesc::operator=(const PxBoxControllerDesc &): assignment operator.
PxBoxControllerDesc::setToDefault(): (re)sets the structure to the default.
PxCapsuleControllerDesc::PxCapsuleControllerDesc(): constructor sets to default.
PxCapsuleControllerDesc::PxCapsuleControllerDesc(const PxCapsuleControllerDesc &): copy constructor.
PxCapsuleControllerDesc::copy(const PxCapsuleControllerDesc &)
PxCapsuleControllerDesc::isValid() const: returns true if the current settings are valid
PxCapsuleControllerDesc::operator=(const PxCapsuleControllerDesc &): assignment operator.
PxCapsuleControllerDesc::setToDefault(): (re)sets the structure to the default.
PxControllerDesc::PxControllerDesc(const PxControllerDesc &): copy constructor.
PxControllerDesc::PxControllerDesc(PxControllerShapeType::Enum): constructor sets to default.
PxControllerDesc::isValid() const: returns true if the current settings are valid
PxControllerDesc::operator=(const PxControllerDesc &): assignment operator.
PxCreateControllerManager(physx::PxScene &scene, bool lockingEnabled=false): Creates the controller manager.
Structs
PxControllerBehaviorFlag: specifies controller behavior
PxControllerCollisionFlag: specifies which sides a character is colliding with.
PxControllerDebugRenderFlag: specifies debug-rendering flags
PxControllerHit: Describes a generic CCT hit.
PxControllerNonWalkableMode: specifies how a CCT interacts with non-walkable parts.
PxControllerObstacleHit: Describes a hit between a CCT and a user-defined obstacle.
PxControllerShapeHit: Describes a hit between a CCT and a shape.
PxControllerShapeType: The type of controller, eg box, sphere or capsule.
PxControllerState: Describes a controller's internal state.
PxControllerStats: Describes a controller's internal statistics.
PxControllersHit: Describes a hit between a CCT and another CCT.
Typedefs
PxControllerBehaviorFlags: Bitfield that contains a set of raised flags defined in PxControllerBehaviorFlag .
PxControllerCollisionFlags: Bitfield that contains a set of raised flags defined in PxControllerCollisionFlag .
PxControllerDebugRenderFlags: Bitfield that contains a set of raised flags defined in PxControllerDebugRenderFlag .
Functions
-
physx::PxControllerManager *PxCreateControllerManager(physx::PxScene &scene, bool lockingEnabled = false)
Creates the controller manager.
The character controller is informed by PxDeletionListener::onRelease() when actors or shapes are released, and updates its internal caches accordingly. If character controller movement or a call to PxControllerManager::shiftOrigin() may overlap with actor/shape releases, internal data structures must be guarded against concurrent access.
Locking guarantees thread safety in such scenarios.
By default, locking is disabled.
Note
locking may result in significant slowdown for release of actors or shapes.
- Parameters
scene – [in] PhysX scene.
lockingEnabled – [in] Enables/disables internal locking.
-
inline PxVec3 diff(const PxExtendedVec3 &p1, const PxExtendedVec3 &p0)
-
inline PxVec3 toVec3(const PxExtendedVec3 &v)
Typedefs
-
typedef PxFlags<PxControllerBehaviorFlag::Enum, PxU8> PxControllerBehaviorFlags
Bitfield that contains a set of raised flags defined in PxControllerBehaviorFlag.
See also
-
typedef PxFlags<PxControllerCollisionFlag::Enum, PxU8> PxControllerCollisionFlags
Bitfield that contains a set of raised flags defined in PxControllerCollisionFlag.
See also
-
typedef PxFlags<PxControllerDebugRenderFlag::Enum, PxU32> PxControllerDebugRenderFlags
Bitfield that contains a set of raised flags defined in PxControllerDebugRenderFlag.
See also
-
typedef double PxExtended