15 #include "physxCylindricalJoint.h" 16 #include "physxCylindricalJointDesc.h" 18 TypeHandle PhysxCylindricalJoint::_type_handle;
25 void PhysxCylindricalJoint::
26 link(NxJoint *jointPtr) {
28 _ptr = jointPtr->isCylindricalJoint();
29 _ptr->userData =
this;
35 scene->_joints.add(
this);
43 void PhysxCylindricalJoint::
46 _ptr->userData = NULL;
47 _error_type = ET_released;
50 scene->_joints.remove(
this);
62 nassertv(_error_type == ET_ok);
63 _ptr->saveToDesc(jointDesc._desc);
75 nassertv(_error_type == ET_ok);
76 _ptr->loadFromDesc(jointDesc._desc);
A scene is a collection of bodies, constraints, and effectors which can interact. ...
void save_to_desc(PhysxCylindricalJointDesc &jointDesc) const
Saves the state of the joint object to a descriptor.
Descriptor class for sliding joint.
void load_from_desc(const PhysxCylindricalJointDesc &jointDesc)
Loads the entire state of the joint from a descriptor with a single call.
void set_name(const char *name)
Sets a name string for this object.
TypeHandle is the identifier used to differentiate C++ class types.