17 TypeHandle PhysxCylindricalJoint::_type_handle;
22 void PhysxCylindricalJoint::
23 link(NxJoint *jointPtr) {
25 _ptr = jointPtr->isCylindricalJoint();
26 _ptr->userData =
this;
32 scene->_joints.add(
this);
38 void PhysxCylindricalJoint::
41 _ptr->userData =
nullptr;
42 _error_type = ET_released;
45 scene->_joints.remove(
this);
54 nassertv(_error_type == ET_ok);
55 _ptr->saveToDesc(jointDesc._desc);
64 nassertv(_error_type == ET_ok);
65 _ptr->loadFromDesc(jointDesc._desc);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_name(const char *name)
Sets a name string for this object.
TypeHandle is the identifier used to differentiate C++ class types.