Character

Classes

Macros

Functions

Structs

Typedefs

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.

typedef PxFlags<PxControllerCollisionFlag::Enum, PxU8> PxControllerCollisionFlags

Bitfield that contains a set of raised flags defined in PxControllerCollisionFlag.

typedef PxFlags<PxControllerDebugRenderFlag::Enum, PxU32> PxControllerDebugRenderFlags

Bitfield that contains a set of raised flags defined in PxControllerDebugRenderFlag.

typedef double PxExtended
typedef PxVec3d PxExtendedVec3
typedef PxU32 PxObstacleHandle