23 void PhysxPlaneShape::
24 link(NxShape *shapePtr) {
26 _ptr = shapePtr->isPlane();
27 _ptr->userData =
this;
33 actor->_shapes.add(
this);
39 void PhysxPlaneShape::
42 _ptr->userData =
nullptr;
43 _error_type = ET_released;
46 actor->_shapes.remove(
this);
55 nassertv(_error_type == ET_ok);
56 _ptr->saveToDesc(shapeDesc._desc);
67 nassertv(_error_type == ET_ok);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_plane(const LVector3f &normal, float d)
Sets the plane equation.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Descriptor class for PhysxPlaneShape.
static NxVec3 vec3_to_nxVec3(const LVector3f &v)
Converts from LVector3f to NxVec3.
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.
void save_to_desc(PhysxPlaneShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.