C4 Engine
C4 Engine API Documentation

class SphericalJoint

Defined in:  C4Joints.h
The SphericalJoint class represents a spherical joint node in a world.
Definition

class SphericalJoint : public Joint

Constructor

SphericalJoint();

Description
The SphericalJoint class represents a spherical joint node in a world. A spherical joint has three rotational degrees of freedom.

When a spherical joint is used to connect a rigid body to static geometry, it allows rotation about any axis, but maintains a constant distance between the rigid body and the joint position.

When a spherical 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 any axis, but 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
Joint A spherical joint is a specific type of joint.
See Also

SphericalJointObject