Descriptor class for PhysxBoxController. More...
#include "physxBoxControllerDesc.h"
Public Member Functions | |
LVector3f | get_extents () const |
Returns the dimensions of the box. More... | |
bool | is_valid () const |
Returns true if the descriptor is valid. More... | |
NxControllerDesc * | ptr () const |
void | set_extents (const LVector3f &extents) |
Sets the dimensions of the box. More... | |
void | set_to_default () |
(re)sets the structure to the default. More... | |
![]() | |
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 | |
NxBoxControllerDesc | _desc |
Descriptor class for PhysxBoxController.
Definition at line 26 of file physxBoxControllerDesc.h.
LVector3f PhysxBoxControllerDesc::get_extents | ( | ) | const |
Returns the dimensions of the box.
Definition at line 33 of file physxBoxControllerDesc.cxx.
References PhysxManager::nxVec3_to_vec3().
|
inlinevirtual |
Returns true if the descriptor is valid.
Implements PhysxControllerDesc.
Definition at line 44 of file physxBoxControllerDesc.I.
void PhysxBoxControllerDesc::set_extents | ( | const LVector3f & | extents | ) |
Sets the dimensions of the box.
The dimensions are the 'radii' of the box, meaning 1/2 extents in x dimension, 1/2 extents in y dimension, 1/2 extents in z dimension.
Definition at line 24 of file physxBoxControllerDesc.cxx.
References PhysxManager::vec3_to_nxVec3().
|
inlinevirtual |
(re)sets the structure to the default.
Implements PhysxControllerDesc.
Definition at line 35 of file physxBoxControllerDesc.I.