Panda3D
|
Public Member Functions | |
PhysxForceFieldShape * | create_shape (PhysxForceFieldShapeDesc &desc) |
Creates a force field shape and adds it to the group. | |
virtual TypeHandle | force_init_type () |
PhysxForceField * | get_force_field () const |
Returns the force field of this group if this is an include group. | |
const char * | get_name () const |
Returns the name string. | |
unsigned int | get_num_shapes () const |
Returns the number of shapes assigned to the force field shape group. | |
PhysxScene * | get_scene () const |
Returns the scene that owns this force field shape group. | |
PhysxForceFieldShape * | get_shape (unsigned int idx) const |
Returns the i-th shape in the force field group. | |
virtual TypeHandle | get_type () const |
void | link (NxForceFieldShapeGroup *ptr) |
void | ls () const |
void | ls (ostream &out, int indent_level=0) const |
MAKE_SEQ (get_shapes, get_num_shapes, get_shape) | |
NxForceFieldShapeGroup * | ptr () const |
void | release () |
Releases the force field shape. | |
void | save_to_desc (PhysxForceFieldShapeGroupDesc &groupDesc) const |
Saves the state of the force field shape group object to a descriptor. | |
void | set_name (const char *name) |
Sets a name string for the object that can be retrieved with get_name(). | |
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. | |
Public Attributes | |
PhysxObjectCollection < PhysxForceFieldShape > | _shapes |
Definition at line 35 of file physxForceFieldShapeGroup.h.
PhysxForceFieldShape * PhysxForceFieldShapeGroup::create_shape | ( | PhysxForceFieldShapeDesc & | desc | ) |
Creates a force field shape and adds it to the group.
Definition at line 185 of file physxForceFieldShapeGroup.cxx.
PhysxForceField * PhysxForceFieldShapeGroup::get_force_field | ( | ) | const |
Returns the force field of this group if this is an include group.
If not NULL will be returned.
Definition at line 110 of file physxForceFieldShapeGroup.cxx.
const char * PhysxForceFieldShapeGroup::get_name | ( | ) | const |
Returns the name string.
Definition at line 158 of file physxForceFieldShapeGroup.cxx.
unsigned int PhysxForceFieldShapeGroup::get_num_shapes | ( | ) | const |
Returns the number of shapes assigned to the force field shape group.
Definition at line 171 of file physxForceFieldShapeGroup.cxx.
PhysxScene * PhysxForceFieldShapeGroup::get_scene | ( | ) | const |
Returns the scene that owns this force field shape group.
Definition at line 97 of file physxForceFieldShapeGroup.cxx.
PhysxForceFieldShape * PhysxForceFieldShapeGroup::get_shape | ( | unsigned int | idx | ) | const |
Returns the i-th shape in the force field group.
Definition at line 207 of file physxForceFieldShapeGroup.cxx.
static void PhysxForceFieldShapeGroup::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 PhysxObject.
Definition at line 79 of file physxForceFieldShapeGroup.h.
References PhysxObject::init_type().
void PhysxForceFieldShapeGroup::release | ( | ) |
Releases the force field shape.
Definition at line 81 of file physxForceFieldShapeGroup.cxx.
void PhysxForceFieldShapeGroup::save_to_desc | ( | PhysxForceFieldShapeGroupDesc & | groupDesc | ) | const |
Saves the state of the force field shape group object to a descriptor.
Definition at line 129 of file physxForceFieldShapeGroup.cxx.
void PhysxForceFieldShapeGroup::set_name | ( | const char * | name | ) |
Sets a name string for the object that can be retrieved with get_name().
This is for debugging and is not used by the engine.
Definition at line 144 of file physxForceFieldShapeGroup.cxx.