22 _desc.shapes.push_back(desc.ptr());
31 _name = name ? name :
"";
32 _desc.name = _name.c_str();
48 set_flag(
const PhysxForceFieldShapeGroupFlag flag,
bool value) {
54 _desc.flags &= ~(flag);
62 get_flag(
const PhysxForceFieldShapeGroupFlag flag)
const {
64 return (_desc.flags & flag) ? true :
false;
Abstract base class for descriptors for force field shapes descriptors.
const char * get_name() const
Returns the optional debug name for this force field shape group.
void add_shape(PhysxForceFieldShapeDesc &desc)
Adds a shape to the list of force field shapes composing this shape group.
void set_name(const char *name)
Sets the optional debug name for the force field shape group.
bool get_flag(PhysxForceFieldShapeGroupFlag flag) const
Returns the specified force field shape group flag.
void set_flag(PhysxForceFieldShapeGroupFlag flag, bool value)
Raise or lower individual force field shape group flags.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.