31 #ifndef PX_PHYSICS_CCT_CAPSULE_CONTROLLER 32 #define PX_PHYSICS_CCT_CAPSULE_CONTROLLER 155 if(
radius<=0.0f)
return false;
156 if(
height<=0.0f)
return false;
Definition: GuContactBuffer.h:37
Standard mode, let the capsule climb over surfaces according to impact normal.
Definition: PxCapsuleController.h:49
virtual PxCapsuleClimbingMode::Enum getClimbingMode() const =0
Gets controller's climbing mode.
PX_INLINE PxCapsuleController()
Definition: PxCapsuleController.h:242
float PxF32
Definition: PxSimpleTypes.h:76
virtual PxF32 getRadius() const =0
Gets controller's radius.
virtual PX_INLINE bool isValid() const
returns true if the current settings are valid
Definition: PxController.h:601
virtual bool setClimbingMode(PxCapsuleClimbingMode::Enum mode)=0
Sets controller's climbing mode.
virtual ~PxCapsuleController()
Definition: PxCapsuleController.h:243
PxF32 stepOffset
Defines the maximum height of an obstacle which the character can climb.
Definition: PxController.h:421
virtual bool setRadius(PxF32 radius)=0
Sets controller's radius.
PxCapsuleClimbingMode::Enum climbingMode
The climbing mode.
Definition: PxCapsuleController.h:116
PxF32 height
The height of the controller.
Definition: PxCapsuleController.h:107
Definition: PxCapsuleController.h:45
virtual PxF32 getHeight() const =0
Gets controller's height.
virtual PX_INLINE ~PxCapsuleControllerDesc()
Definition: PxCapsuleController.h:68
virtual bool setHeight(PxF32 height)=0
Resets controller's height.
Base class for character controllers.
Definition: PxController.h:623
PX_INLINE PxControllerDesc & operator=(const PxControllerDesc &)
assignment operator.
Definition: PxController.h:569
A capsule character controller.
Definition: PxCapsuleController.h:177
PX_INLINE void copy(const PxCapsuleControllerDesc &)
Definition: PxCapsuleController.h:140
PX_INLINE PxCapsuleControllerDesc()
constructor sets to default.
Definition: PxCapsuleController.h:122
The type of controller, eg box, sphere or capsule.
Definition: PxController.h:52
Constrained mode, try to limit climbing according to the step offset.
Definition: PxCapsuleController.h:50
PX_INLINE PxCapsuleControllerDesc & operator=(const PxCapsuleControllerDesc &)
assignment operator.
Definition: PxCapsuleController.h:133
virtual PX_INLINE bool isValid() const
returns true if the current settings are valid
Definition: PxCapsuleController.h:152
A descriptor for a capsule character controller.
Definition: PxCapsuleController.h:61
Descriptor class for a character controller.
Definition: PxController.h:304
virtual PX_INLINE void setToDefault()
(re)sets the structure to the default.
Definition: PxCapsuleController.h:147
PxF32 radius
The radius of the capsule.
Definition: PxCapsuleController.h:98
#define PX_INLINE
Definition: PxPreprocessor.h:349
Enum
Definition: PxCapsuleController.h:47