Panda3D
|
Descriptor for a capsule force field shape. More...
#include "physxCapsuleForceFieldShapeDesc.h"
Public Member Functions | |
float | get_height () const |
The distance between the two hemispherical ends of the capsule. More... | |
float | get_radius () const |
The radius of the capsule's hemispherical ends and its trunk. More... | |
bool | is_valid () const |
Returns true if the descriptor is valid. More... | |
NxForceFieldShapeDesc * | ptr () const |
void | set_height (float height) |
Sets the distance between the two hemispherical ends of the capsule. More... | |
void | set_radius (float radius) |
Sets the radius of the capsule's hemispherical ends and its trunk. More... | |
void | set_to_default () |
(re)sets the structure to the default. More... | |
![]() | |
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. More... | |
void | set_pos (const LPoint3f &pos) |
Public Attributes | |
NxCapsuleForceFieldShapeDesc | _desc |
Descriptor for a capsule force field shape.
Definition at line 27 of file physxCapsuleForceFieldShapeDesc.h.
float PhysxCapsuleForceFieldShapeDesc::get_height | ( | ) | const |
The distance between the two hemispherical ends of the capsule.
Definition at line 60 of file physxCapsuleForceFieldShapeDesc.cxx.
Referenced by get_radius().
float PhysxCapsuleForceFieldShapeDesc::get_radius | ( | ) | const |
The radius of the capsule's hemispherical ends and its trunk.
Definition at line 48 of file physxCapsuleForceFieldShapeDesc.cxx.
References get_height().
Referenced by set_height().
|
inlinevirtual |
Returns true if the descriptor is valid.
Implements PhysxForceFieldShapeDesc.
Definition at line 56 of file physxCapsuleForceFieldShapeDesc.I.
Referenced by set_to_default().
void PhysxCapsuleForceFieldShapeDesc::set_height | ( | float | height | ) |
Sets the distance between the two hemispherical ends of the capsule.
Definition at line 36 of file physxCapsuleForceFieldShapeDesc.cxx.
References get_radius().
Referenced by set_radius().
void PhysxCapsuleForceFieldShapeDesc::set_radius | ( | float | radius | ) |
Sets the radius of the capsule's hemispherical ends and its trunk.
Definition at line 24 of file physxCapsuleForceFieldShapeDesc.cxx.
References set_height().
|
inlinevirtual |
(re)sets the structure to the default.
Implements PhysxForceFieldShapeDesc.
Definition at line 44 of file physxCapsuleForceFieldShapeDesc.I.
References is_valid(), and PhysxForceFieldShapeDesc::set_name().