C4 Engine
C4 Engine API Documentation

class UniversalJoint

Defined in:  C4Joints.h
The UniversalJoint class represents a universal joint node in a world.
Definition

class UniversalJoint final : public SphericalJoint

Constructor

UniversalJoint();

Description
The UniversalJoint class represents a universal joint node in a world. A universal joint has two rotational degrees of freedom.

When a universal joint is used to connect a rigid body to static geometry, it allows rotation about the two non-radial axes and maintains a constant distance between the rigid body and the joint position.

When a universal joint is used to connect two rigid bodies, the original joint position is saved in node-space coordinates for both rigid bodies. The rigid bodies are allowed to rotate about the two non-radial axes, and the two saved joint positions are required to coincide in world-space, maintaining the original distances between the rigid bodies and the original joint position.
Base Classes
SphericalJoint A universal joint is a specific type of spherical joint.
See Also

UniversalJointObject