15 #include "physxConvexForceFieldShape.h" 16 #include "physxConvexForceFieldShapeDesc.h" 18 TypeHandle PhysxConvexForceFieldShape::_type_handle;
25 void PhysxConvexForceFieldShape::
26 link(NxForceFieldShape *shapePtr) {
28 _ptr = shapePtr->isConvex();
29 _ptr->userData =
this;
35 group->_shapes.add(
this);
43 void PhysxConvexForceFieldShape::
46 _ptr->userData = NULL;
47 _error_type = ET_released;
50 group->_shapes.remove(
this);
62 nassertv(_error_type == ET_ok);
63 _ptr->saveToDesc(shapeDesc._desc);
A descriptor for a convex force field shape.
void set_name(const char *name)
Sets a name string for this object.
void save_to_desc(PhysxConvexForceFieldShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.
TypeHandle is the identifier used to differentiate C++ class types.