Panda3D
|
A spherical force field shape. More...
#include "physxSphereForceFieldShape.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
float | get_radius () const |
Returns the radius of the sphere. | |
virtual TypeHandle | get_type () const |
void | link (NxForceFieldShape *shapePtr) |
NxForceFieldShape * | ptr () const |
void | save_to_desc (PhysxSphereForceFieldShapeDesc &shapeDesc) const |
Saves the state of the shape object to a descriptor. | |
void | set_radius (float radius) |
Sets the sphere radius. | |
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 spherical force field shape.
Definition at line 30 of file physxSphereForceFieldShape.h.
float PhysxSphereForceFieldShape::get_radius | ( | ) | const |
Returns the radius of the sphere.
Definition at line 84 of file physxSphereForceFieldShape.cxx.
static void PhysxSphereForceFieldShape::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 57 of file physxSphereForceFieldShape.h.
References PhysxForceFieldShape::init_type().
void PhysxSphereForceFieldShape::save_to_desc | ( | PhysxSphereForceFieldShapeDesc & | shapeDesc | ) | const |
Saves the state of the shape object to a descriptor.
Definition at line 60 of file physxSphereForceFieldShape.cxx.
void PhysxSphereForceFieldShape::set_radius | ( | float | radius | ) |
Sets the sphere radius.
Definition at line 72 of file physxSphereForceFieldShape.cxx.