Panda3D

Public Member Functions | Public Attributes | List of all members
PhysxCapsuleControllerDesc Class Reference

Descriptor class for PhysxCapsuleController. More...

`#include "physxCapsuleControllerDesc.h"`

Inheritance diagram for PhysxCapsuleControllerDesc:

## Public Member Functions
float | get_height () const
| The distance between the two hemispherical ends of the capsule. More...
float | get_radius () const
| The radius of the capsule's hemispherical ends and its trunk. More...
bool | is_valid () const
| Returns true if the descriptor is valid. More...
NxControllerDesc * | ptr () const
void | set_height (float height)
| Sets the distance between the two hemispherical ends of the capsule. More...
void | set_radius (float radius)
| Sets the radius of the capsule's hemispherical ends and its trunk. More...
void | set_to_default ()
| (re)sets the structure to the default. More...
Public Member Functions inherited from PhysxControllerDesc
bool | get_interaction_flag () const
| Returns the interaction flag. More...
LPoint3f | get_pos () const
| Returns the position of the character. More...
float | get_skin_width () const
| Returns the skin width used by the controller. More...
float | get_slope_limit () const
| Returns the maximum slope which the character can walk up. More...
float | get_step_offset () const
| Returns the maximum height of an obstacle which the character can climb. More...
void | set_interaction_flag (bool interactionFlag)
| The interaction flag controls if a character controller collides with other controllers. More...
void | set_pos (const LPoint3f &pos)
| Set the position of the character. More...
void | set_skin_width (float skinWidth)
| Sets the skin width used by the controller. More...
void | set_slope_limit (float slopeLimit)
| Sets the maximum slope which the character can walk up. More...
void | set_step_offset (float setpOffset)
| Defines the maximum height of an obstacle which the character can climb. More...

## Public Attributes
NxCapsuleControllerDesc | _desc

## Detailed Description

Descriptor class for PhysxCapsuleController.

Definition at line 25 of file physxCapsuleControllerDesc.h.

## Member Function Documentation

## ◆ get_height()

float PhysxCapsuleControllerDesc::get_height | ( |  | ) | const

The distance between the two hemispherical ends of the capsule.

Definition at line 46 of file physxCapsuleControllerDesc.cxx.

## ◆ get_radius()

float PhysxCapsuleControllerDesc::get_radius | ( |  | ) | const

The radius of the capsule's hemispherical ends and its trunk.

Definition at line 37 of file physxCapsuleControllerDesc.cxx.

## ◆ is_valid()

bool PhysxCapsuleControllerDesc::is_valid | ( |  | ) | const
| inline virtual

Returns true if the descriptor is valid.

Implements PhysxControllerDesc.

Definition at line 43 of file physxCapsuleControllerDesc.I.

## ◆ set_height()

void PhysxCapsuleControllerDesc::set_height | ( | float | height | ) |

Sets the distance between the two hemispherical ends of the capsule.

Definition at line 28 of file physxCapsuleControllerDesc.cxx.

## ◆ set_radius()

void PhysxCapsuleControllerDesc::set_radius | ( | float | radius | ) |

Sets the radius of the capsule's hemispherical ends and its trunk.

Definition at line 19 of file physxCapsuleControllerDesc.cxx.

## ◆ set_to_default()

void PhysxCapsuleControllerDesc::set_to_default | ( |  | ) |
| inline virtual

(re)sets the structure to the default.

Implements PhysxControllerDesc.

Definition at line 34 of file physxCapsuleControllerDesc.I.

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

- panda/src/physx/physxCapsuleControllerDesc.h
- panda/src/physx/physxCapsuleControllerDesc.cxx
- panda/src/physx/physxCapsuleControllerDesc.I