Panda3D
|
A descriptor for a sphere force field shape. More...
#include "physxSphereForceFieldShapeDesc.h"
Public Member Functions | |
float | get_radius () const |
Radius of shape. | |
bool | is_valid () const |
Returns true if the descriptor is valid. | |
NxForceFieldShapeDesc * | ptr () const |
void | set_radius (float radius) |
Radius of shape. | |
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 | |
NxSphereForceFieldShapeDesc | _desc |
A descriptor for a sphere force field shape.
Definition at line 25 of file physxSphereForceFieldShapeDesc.h.
|
inline |
Definition at line 17 of file physxSphereForceFieldShapeDesc.I.
|
inline |
Definition at line 26 of file physxSphereForceFieldShapeDesc.I.
float PhysxSphereForceFieldShapeDesc::get_radius | ( | ) | const |
Radius of shape.
Definition at line 28 of file physxSphereForceFieldShapeDesc.cxx.
|
inlinevirtual |
Returns true if the descriptor is valid.
Implements PhysxForceFieldShapeDesc.
Definition at line 44 of file physxSphereForceFieldShapeDesc.I.
|
inlinevirtual |
Implements PhysxForceFieldShapeDesc.
Definition at line 39 of file physxSphereForceFieldShapeDesc.h.
void PhysxSphereForceFieldShapeDesc::set_radius | ( | float | radius | ) |
Radius of shape.
Must be positive.
Definition at line 19 of file physxSphereForceFieldShapeDesc.cxx.
|
inlinevirtual |
(re)sets the structure to the default.
Implements PhysxForceFieldShapeDesc.
Definition at line 34 of file physxSphereForceFieldShapeDesc.I.
References PhysxForceFieldShapeDesc::set_name().
NxSphereForceFieldShapeDesc PhysxSphereForceFieldShapeDesc::_desc |
Definition at line 40 of file physxSphereForceFieldShapeDesc.h.