#include <PxCapsuleController.h>
Public Member Functions | |
virtual PxF32 | getRadius () const =0 |
Gets controller's radius. | |
virtual bool | setRadius (PxF32 radius)=0 |
Sets controller's radius. | |
virtual PxF32 | getHeight () const =0 |
Gets controller's height. | |
virtual bool | setHeight (PxF32 height)=0 |
Resets controller's height. | |
virtual PxCapsuleClimbingMode::Enum | getClimbingMode () const =0 |
Gets controller's climbing mode. | |
virtual bool | setClimbingMode (PxCapsuleClimbingMode::Enum mode)=0 |
Sets controller's climbing mode. | |
Protected Member Functions | |
PX_INLINE | PxCapsuleController () |
virtual | ~PxCapsuleController () |
The capsule is defined as a position, a vertical height, and a radius. The height is the distance between the two sphere centers at the end of the capsule. In other words:
p = pos (returned by controller)
h = height
r = radius
p = center of capsule
top sphere center = p.y + h*0.5
bottom sphere center = p.y - h*0.5
top capsule point = p.y + h*0.5 + r
bottom capsule point = p.y - h*0.5 - r
PX_INLINE PxCapsuleController::PxCapsuleController | ( | ) | [inline, protected] |
virtual PxCapsuleController::~PxCapsuleController | ( | ) | [inline, protected, virtual] |
virtual PxCapsuleClimbingMode::Enum PxCapsuleController::getClimbingMode | ( | ) | const [pure virtual] |
Gets controller's climbing mode.
virtual PxF32 PxCapsuleController::getHeight | ( | ) | const [pure virtual] |
Gets controller's height.
virtual PxF32 PxCapsuleController::getRadius | ( | ) | const [pure virtual] |
Gets controller's radius.
virtual bool PxCapsuleController::setClimbingMode | ( | PxCapsuleClimbingMode::Enum | mode | ) | [pure virtual] |
Sets controller's climbing mode.
[in] | mode | The capsule controller's climbing mode. |
virtual bool PxCapsuleController::setHeight | ( | PxF32 | height | ) | [pure virtual] |
Resets controller's height.
[in] | height | The new height for the controller. |
virtual bool PxCapsuleController::setRadius | ( | PxF32 | radius | ) | [pure virtual] |
Sets controller's radius.
[in] | radius | The new radius for the controller. |