C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

class RevoluteJoint

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

class RevoluteJoint : public Joint

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
Joint A revolute joint is a specific type of joint.
See Also

RevoluteJointObject