15 #include "physxPlaneShape.h"
16 #include "physxPlaneShapeDesc.h"
17 #include "physxManager.h"
26 void PhysxPlaneShape::
27 link(NxShape *shapePtr) {
29 _ptr = shapePtr->isPlane();
30 _ptr->userData =
this;
36 actor->_shapes.add(
this);
44 void PhysxPlaneShape::
47 _ptr->userData = NULL;
48 _error_type = ET_released;
51 actor->_shapes.remove(
this);
63 nassertv(_error_type == ET_ok);
64 _ptr->saveToDesc(shapeDesc._desc);
79 nassertv(_error_type == ET_ok);
void set_plane(const LVector3f &normal, float d)
Sets the plane equation.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
void save_to_desc(PhysxPlaneShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.
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.