Panda3D
|
A capsule shaped region used to define a force field. More...
#include "physxCapsuleForceFieldShape.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
float | get_height () const |
Retrieves the height of the capsule. | |
float | get_radius () const |
Retrieves the radius of the capsule. | |
virtual TypeHandle | get_type () const |
void | link (NxForceFieldShape *shapePtr) |
NxForceFieldShape * | ptr () const |
void | save_to_desc (PhysxCapsuleForceFieldShapeDesc &shapeDesc) const |
Saves the state of the shape object to a descriptor. | |
void | set_height (float height) |
Alters the height of the capsule. | |
void | set_radius (float radius) |
Alters the radius of the capsule. | |
void | unlink () |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
A capsule shaped region used to define a force field.
Definition at line 31 of file physxCapsuleForceFieldShape.h.
float PhysxCapsuleForceFieldShape::get_height | ( | ) | const |
Retrieves the height of the capsule.
Definition at line 108 of file physxCapsuleForceFieldShape.cxx.
float PhysxCapsuleForceFieldShape::get_radius | ( | ) | const |
Retrieves the radius of the capsule.
Definition at line 96 of file physxCapsuleForceFieldShape.cxx.
static void PhysxCapsuleForceFieldShape::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from PhysxForceFieldShape.
Definition at line 60 of file physxCapsuleForceFieldShape.h.
References PhysxForceFieldShape::init_type().
void PhysxCapsuleForceFieldShape::save_to_desc | ( | PhysxCapsuleForceFieldShapeDesc & | shapeDesc | ) | const |
Saves the state of the shape object to a descriptor.
Definition at line 60 of file physxCapsuleForceFieldShape.cxx.
void PhysxCapsuleForceFieldShape::set_height | ( | float | height | ) |
Alters the height of the capsule.
Definition at line 84 of file physxCapsuleForceFieldShape.cxx.
void PhysxCapsuleForceFieldShape::set_radius | ( | float | radius | ) |
Alters the radius of the capsule.
Definition at line 72 of file physxCapsuleForceFieldShape.cxx.