15 #include "physxConvexShape.h"
16 #include "physxConvexShapeDesc.h"
25 void PhysxConvexShape::
26 link(NxShape *shapePtr) {
28 _ptr = shapePtr->isConvexMesh();
29 _ptr->userData =
this;
35 actor->_shapes.add(
this);
43 void PhysxConvexShape::
46 _ptr->userData = NULL;
47 _error_type = ET_released;
50 actor->_shapes.remove(
this);
62 nassertv(_error_type == ET_ok);
63 _ptr->saveToDesc(shapeDesc._desc);
void save_to_desc(PhysxConvexShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.
Descriptor class for PhysxConvexShape.
Actors are the main simulation objects.
void set_name(const char *name)
Sets a name string for this object.
TypeHandle is the identifier used to differentiate C++ class types.