Panda3D
|
Descriptor class for PhysxBoxShape. More...
#include "physxBoxShapeDesc.h"
Public Member Functions | |
LVector3f | get_dimensions () const |
Returns the dimensions of the box. | |
bool | is_valid () const |
Returns true if the descriptor is valid. | |
NxShapeDesc * | ptr () const |
void | set_dimensions (const LVector3f &dimensions) |
Sets the dimensions of the box. | |
void | set_to_default () |
(re)sets the structure to the default. | |
Public Attributes | |
NxBoxShapeDesc | _desc |
Descriptor class for PhysxBoxShape.
Definition at line 28 of file physxBoxShapeDesc.h.
LVector3f PhysxBoxShapeDesc::get_dimensions | ( | ) | const |
Returns the dimensions of the box.
Definition at line 40 of file physxBoxShapeDesc.cxx.
References PhysxManager::nxVec3_to_vec3().
bool PhysxBoxShapeDesc::is_valid | ( | ) | const [inline, virtual] |
Returns true if the descriptor is valid.
Implements PhysxShapeDesc.
Definition at line 56 of file physxBoxShapeDesc.I.
void PhysxBoxShapeDesc::set_dimensions | ( | const LVector3f & | dimensions | ) |
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 physxBoxShapeDesc.cxx.
References LVecBase3f::is_nan(), and PhysxManager::vec3_to_nxVec3().
void PhysxBoxShapeDesc::set_to_default | ( | ) | [inline, virtual] |
(re)sets the structure to the default.
Implements PhysxShapeDesc.
Definition at line 44 of file physxBoxShapeDesc.I.
References PhysxShapeDesc::set_name().