15 #include "physxTriangleMeshShape.h" 16 #include "physxTriangleMeshShapeDesc.h" 18 TypeHandle PhysxTriangleMeshShape::_type_handle;
25 void PhysxTriangleMeshShape::
26 link(NxShape *shapePtr) {
28 _ptr = shapePtr->isTriangleMesh();
29 _ptr->userData =
this;
35 actor->_shapes.add(
this);
43 void PhysxTriangleMeshShape::
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);
Descriptor class for PhysxTriangleMeshShape.
void save_to_desc(PhysxTriangleMeshShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.
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.