29#ifndef PX_CAPSULE_CONTROLLER_H
30#define PX_CAPSULE_CONTROLLER_H
35#include "characterkinematic/PxController.h"
152 if(
radius<=0.0f)
return false;
153 if(
height<=0.0f)
return false;
A descriptor for a capsule character controller.
Definition PxCapsuleController.h:59
virtual PX_INLINE void setToDefault()
(re)sets the structure to the default.
Definition PxCapsuleController.h:144
PX_INLINE PxCapsuleControllerDesc()
constructor sets to default.
Definition PxCapsuleController.h:119
PX_INLINE PxCapsuleControllerDesc & operator=(const PxCapsuleControllerDesc &)
assignment operator.
Definition PxCapsuleController.h:130
PxF32 radius
The radius of the capsule.
Definition PxCapsuleController.h:95
virtual PX_INLINE bool isValid() const
returns true if the current settings are valid
Definition PxCapsuleController.h:149
PxF32 height
The height of the controller.
Definition PxCapsuleController.h:104
PxCapsuleClimbingMode::Enum climbingMode
The climbing mode.
Definition PxCapsuleController.h:113
A capsule character controller.
Definition PxCapsuleController.h:175
virtual bool setRadius(PxF32 radius)=0
Sets controller's radius.
virtual PxF32 getRadius() const =0
Gets controller's radius.
virtual bool setHeight(PxF32 height)=0
Resets controller's height.
virtual bool setClimbingMode(PxCapsuleClimbingMode::Enum mode)=0
Sets controller's climbing mode.
virtual PxF32 getHeight() const =0
Gets controller's height.
virtual PxCapsuleClimbingMode::Enum getClimbingMode() const =0
Gets controller's climbing mode.
Descriptor class for a character controller.
Definition PxController.h:300
virtual PX_INLINE bool isValid() const
returns true if the current settings are valid
Definition PxController.h:606
PX_INLINE PxControllerDesc & operator=(const PxControllerDesc &)
assignment operator.
Definition PxController.h:573
PxF32 stepOffset
Defines the maximum height of an obstacle which the character can climb.
Definition PxController.h:416
Base class for character controllers.
Definition PxController.h:638
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Definition PxCapsuleController.h:43
Enum
Definition PxCapsuleController.h:45
@ eCONSTRAINED
Constrained mode, try to limit climbing according to the step offset.
Definition PxCapsuleController.h:47
@ eEASY
Standard mode, let the capsule climb over surfaces according to impact normal.
Definition PxCapsuleController.h:46
The type of controller, eg box, sphere or capsule.
Definition PxController.h:49