C4 Engine
C4 Engine API Documentation

class RevoluteJoint

Defined in:  C4Joints.h
The RevoluteJoint class represents a revolute joint node in a world.
Definition

class RevoluteJoint final : public DiscalJoint

Constructor

RevoluteJoint();

Description
The RevoluteJoint class represents a revolute joint node in a world. A revolute joint has one rotational degree of freedom and behaves like a hinge.

When a revolute joint is used to connect a rigid body to static geometry, it allows rotation about the joint's z axis and maintains a constant distance between the rigid body and the joint position.

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

RevoluteJointObject