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. | |
Public Attributes | |
NxSphereForceFieldShapeDesc | _desc |
A descriptor for a sphere force field shape.
Definition at line 27 of file physxSphereForceFieldShapeDesc.h.
float PhysxSphereForceFieldShapeDesc::get_radius | ( | ) | const |
Radius of shape.
Definition at line 34 of file physxSphereForceFieldShapeDesc.cxx.
bool PhysxSphereForceFieldShapeDesc::is_valid | ( | ) | const [inline, virtual] |
Returns true if the descriptor is valid.
Implements PhysxForceFieldShapeDesc.
Definition at line 56 of file physxSphereForceFieldShapeDesc.I.
void PhysxSphereForceFieldShapeDesc::set_radius | ( | float | radius | ) |
Radius of shape.
Must be positive.
Definition at line 23 of file physxSphereForceFieldShapeDesc.cxx.
void PhysxSphereForceFieldShapeDesc::set_to_default | ( | ) | [inline, virtual] |
(re)sets the structure to the default.
Implements PhysxForceFieldShapeDesc.
Definition at line 44 of file physxSphereForceFieldShapeDesc.I.
References PhysxForceFieldShapeDesc::set_name().