C4 Engine
C4 Engine API Documentation

class PrismaticJoint

Defined in:  C4Joints.h
The PrismaticJoint class represents a prismatic joint node in a world.
Definition

class PrismaticJoint final : public CylindricalJoint

Constructor

PrismaticJoint();

Description
The PrismaticJoint class represents a prismatic joint node in a world. A prismatic joint has one translational degree of freedom and behaves like a non-rotating piston.

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

When a prismatic 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 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
CylindricalJoint A prismatic joint is a specific type of cylindrical joint.
See Also

PrismaticJointObject