Panda3D
|
Descriptor for a box force field shape. More...
#include "physxBoxForceFieldShapeDesc.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. | |
NxForceFieldShapeDesc * | 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. | |
![]() | |
LMatrix4f | get_mat () const |
const char * | get_name () const |
LPoint3f | get_pos () const |
void | set_hpr (float h, float p, float r) |
void | set_mat (const LMatrix4f &mat) |
void | set_name (const char *name) |
Sets a possible debug name. | |
void | set_pos (const LPoint3f &pos) |
Public Attributes | |
NxBoxForceFieldShapeDesc | _desc |
Descriptor for a box force field shape.
Definition at line 26 of file physxBoxForceFieldShapeDesc.h.
|
inline |
Definition at line 17 of file physxBoxForceFieldShapeDesc.I.
|
inline |
Definition at line 26 of file physxBoxForceFieldShapeDesc.I.
LVector3f PhysxBoxForceFieldShapeDesc::get_dimensions | ( | ) | const |
Returns the dimensions of the box.
Definition at line 33 of file physxBoxForceFieldShapeDesc.cxx.
References PhysxManager::nxVec3_to_vec3().
|
inlinevirtual |
Returns true if the descriptor is valid.
Implements PhysxForceFieldShapeDesc.
Definition at line 44 of file physxBoxForceFieldShapeDesc.I.
|
inlinevirtual |
Implements PhysxForceFieldShapeDesc.
Definition at line 40 of file physxBoxForceFieldShapeDesc.h.
void PhysxBoxForceFieldShapeDesc::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 23 of file physxBoxForceFieldShapeDesc.cxx.
References PhysxManager::vec3_to_nxVec3().
|
inlinevirtual |
(re)sets the structure to the default.
Implements PhysxForceFieldShapeDesc.
Definition at line 34 of file physxBoxForceFieldShapeDesc.I.
References PhysxForceFieldShapeDesc::set_name().
NxBoxForceFieldShapeDesc PhysxBoxForceFieldShapeDesc::_desc |
Definition at line 41 of file physxBoxForceFieldShapeDesc.h.