14#ifndef PHYSXFORCEFIELDSHAPEGROUP_H
15#define PHYSXFORCEFIELDSHAPEGROUP_H
33class EXPCL_PANDAPHYSX PhysxForceFieldShapeGroup :
public PhysxObject,
public PhysxEnums {
36 INLINE PhysxForceFieldShapeGroup();
37 INLINE ~PhysxForceFieldShapeGroup();
56 INLINE
void ls()
const;
57 INLINE
void ls(std::ostream &out,
int indent_level=0)
const;
60 INLINE NxForceFieldShapeGroup *ptr()
const {
return _ptr; };
62 void link(NxForceFieldShapeGroup *ptr);
68 NxForceFieldShapeGroup *_ptr;
75 static void init_type() {
76 PhysxObject::init_type();
78 PhysxObject::get_class_type());
80 virtual TypeHandle get_type()
const {
81 return get_class_type();
83 virtual TypeHandle force_init_type() {
85 return get_class_type();
89 static TypeHandle _type_handle;
This class exists just to provide scoping for the enums shared by PhysX classes.
Abstract base class for descriptors for force field shapes descriptors.
get_shape
Returns the i-th shape in the force field group.
PhysxForceFieldShape * create_shape(PhysxForceFieldShapeDesc &desc)
Creates a force field shape and adds it to the group.
get_num_shapes
Returns the number of shapes assigned to the force field shape group.
void save_to_desc(PhysxForceFieldShapeGroupDesc &groupDesc) const
Saves the state of the force field shape group object to a descriptor.
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.
PhysxScene * get_scene() const
Returns the scene that owns this force field shape group.
void set_name(const char *name)
Sets a name string for the object that can be retrieved with get_name().
void release()
Releases the force field shape.
Abstract base class for force field shapes.
A scene is a collection of bodies, constraints, and effectors which can interact.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...