C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

class CylindricalJoint

Defined in:  C4Contacts.h
The CylindricalJoint class represents a cylindrical joint node in a world.
Definition

class CylindricalJoint : public Joint

Constructor

CylindricalJoint();

Description
The CylindricalJoint class represents a cylindrical joint node in a world. A cylindrical joint has one translational degree of freedom and one rotational degree of freedom. It behaves like a piston that allows rotation about the translational axis.

When a cylindrical joint is used to connect a rigid body to static geometry, it allows only translation along the joint's z axis and rotation about the joint's z axis.

When a revolute joint is used to connect two rigid bodies, the original z axis direction is saved in node-space coordinates for both rigid bodies. The rigid bodies are allowed to translate along the z axis and rotate about the z axis, and the two saved z axis directions are required to coincide in world-space, maintaining the original orientation between the rigid bodies and the original joint configuration.
Base Classes
Joint A cylindrical joint is a specific type of joint.
See Also

CylindricalJointObject