C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

class PrismaticJoint

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

class PrismaticJoint : public Joint

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

PrismaticJointObject