17 TypeHandle PhysxTriangleMeshShape::_type_handle;
22 void PhysxTriangleMeshShape::
23 link(NxShape *shapePtr) {
25 _ptr = shapePtr->isTriangleMesh();
26 _ptr->userData =
this;
32 actor->_shapes.add(
this);
38 void PhysxTriangleMeshShape::
41 _ptr->userData =
nullptr;
42 _error_type = ET_released;
45 actor->_shapes.remove(
this);
54 nassertv(_error_type == ET_ok);
55 _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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.