Panda3D
|
Descriptor class for PhysxBoxController. More...
#include "physxBoxControllerDesc.h"
Public Member Functions | |
LVector3f | get_extents () const |
Returns the dimensions of the box. | |
bool | is_valid () const |
Returns true if the descriptor is valid. | |
NxControllerDesc * | ptr () const |
void | set_extents (const LVector3f &extents) |
Sets the dimensions of the box. | |
void | set_to_default () |
(re)sets the structure to the default. | |
Public Attributes | |
NxBoxControllerDesc | _desc |
Descriptor class for PhysxBoxController.
Definition at line 28 of file physxBoxControllerDesc.h.
LVector3f PhysxBoxControllerDesc::get_extents | ( | ) | const |
Returns the dimensions of the box.
Definition at line 39 of file physxBoxControllerDesc.cxx.
References PhysxManager::nxVec3_to_vec3().
bool PhysxBoxControllerDesc::is_valid | ( | ) | const [inline, virtual] |
Returns true if the descriptor is valid.
Implements PhysxControllerDesc.
Definition at line 55 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 28 of file physxBoxControllerDesc.cxx.
References PhysxManager::vec3_to_nxVec3().
void PhysxBoxControllerDesc::set_to_default | ( | ) | [inline, virtual] |
(re)sets the structure to the default.
Implements PhysxControllerDesc.
Definition at line 44 of file physxBoxControllerDesc.I.