RavEngine
Loading...
Searching...
No Matches
physx::PxCapsuleControllerDesc Class Reference

A descriptor for a capsule character controller. More...

#include <PxCapsuleController.h>

Inheritance diagram for physx::PxCapsuleControllerDesc:
[legend]
Collaboration diagram for physx::PxCapsuleControllerDesc:
[legend]

Public Member Functions

PX_INLINE PxCapsuleControllerDesc ()
 constructor sets to default.
 
PX_INLINE PxCapsuleControllerDesc (const PxCapsuleControllerDesc &)
 copy constructor.
 
PX_INLINE PxCapsuleControllerDesc & operator= (const PxCapsuleControllerDesc &)
 assignment operator.
 
virtual PX_INLINE void setToDefault ()
 (re)sets the structure to the default.
 
virtual PX_INLINE bool isValid () const
 returns true if the current settings are valid
 
- Public Member Functions inherited from physx::PxControllerDesc
PX_INLINE PxControllerShapeType::Enum getType () const
 Returns the character controller type.
 

Public Attributes

PxF32 radius
 The radius of the capsule.
 
PxF32 height
 The height of the controller.
 
PxCapsuleClimbingMode::Enum climbingMode
 The climbing mode.
 
- Public Attributes inherited from physx::PxControllerDesc
PxExtendedVec3 position
 The position of the character.
 
PxVec3 upDirection
 Specifies the 'up' direction.
 
PxF32 slopeLimit
 The maximum slope which the character can walk up.
 
PxF32 invisibleWallHeight
 Height of invisible walls created around non-walkable triangles.
 
PxF32 maxJumpHeight
 Maximum height a jumping character can reach.
 
PxF32 contactOffset
 The contact offset used by the controller.
 
PxF32 stepOffset
 Defines the maximum height of an obstacle which the character can climb.
 
PxF32 density
 Density of underlying kinematic actor.
 
PxF32 scaleCoeff
 Scale coefficient for underlying kinematic actor.
 
PxF32 volumeGrowth
 Cached volume growth.
 
PxUserControllerHitReport * reportCallback
 Specifies a user report callback.
 
PxControllerBehaviorCallback * behaviorCallback
 Specifies a user behavior callback.
 
PxControllerNonWalkableMode::Enum nonWalkableMode
 The non-walkable mode controls if a character controller slides or not on a non-walkable part.
 
PxMaterial * material
 The material for the actor associated with the controller.
 
bool registerDeletionListener
 Use a deletion listener to get informed about released objects and clear internal caches if needed.
 
PxClientID clientID
 Client ID for associated actor.
 
void * userData
 User specified data associated with the controller.
 

Protected Member Functions

PX_INLINE void copy (const PxCapsuleControllerDesc &)
 
- Protected Member Functions inherited from physx::PxControllerDesc
PX_INLINE PxControllerDesc (PxControllerShapeType::Enum)
 constructor sets to default.
 
PX_INLINE PxControllerDesc (const PxControllerDesc &)
 copy constructor.
 
PX_INLINE PxControllerDesc & operator= (const PxControllerDesc &)
 assignment operator.
 
PX_INLINE void copy (const PxControllerDesc &)
 

Additional Inherited Members

- Protected Attributes inherited from physx::PxControllerDesc
const PxControllerShapeType::Enum mType
 The type of the controller. This gets set by the derived class' ctor, the user should not have to change it.
 

Detailed Description

A descriptor for a capsule character controller.

See also
PxCapsuleController PxControllerDesc

Member Function Documentation

◆ isValid()

PX_INLINE bool physx::PxCapsuleControllerDesc::isValid ( ) const
virtual

returns true if the current settings are valid

Returns
True if the descriptor is valid.

Reimplemented from physx::PxControllerDesc.

Member Data Documentation

◆ climbingMode

PxCapsuleClimbingMode::Enum physx::PxCapsuleControllerDesc::climbingMode

The climbing mode.

Default: PxCapsuleClimbingMode::eEASY

See also
PxCapsuleController

◆ height

PxF32 physx::PxCapsuleControllerDesc::height

The height of the controller.

Default: 0.0

See also
PxCapsuleController

◆ radius

PxF32 physx::PxCapsuleControllerDesc::radius

The radius of the capsule.

Default: 0.0

See also
PxCapsuleController

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