C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

class Joint

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

class Joint : public Node

Member Functions
Joint::GetJointType Returns the specific type of a joint.
Joint::GetFirstRigidBodyConnector Returns the first rigid body connected to a joint.
Joint::SetFirstRigidBodyConnector Sets the first rigid body connected to a joint.
Joint::GetSecondRigidBodyConnector Returns the second rigid body connected to a joint.
Joint::SetSecondRigidBodyConnector Sets the second rigid body connected to a joint.
Constructor

Joint(JointType type);

The constructor has protected access. A Joint class can only exist as the base class for a more specific type of joint.
Parameters
type The type of the joint. See below for a list of possible types.
Description
The Joint class represents a joint node in a world. A joint can be used to connect a rigid body to another rigid body or to static geometry, and the type of joint determines what kind of motion is allowed for the connected rigid bodies.

A joint node can be of one of the following types.
kJointSpherical A spherical joint.
kJointUniversal A universal joint.
kJointDiscal A discal joint.
kJointRevolute A revolute joint.
kJointCylindrical A cylindrical joint.
kJointPrismatic A prismatic joint.
Base Classes
Node A Joint node is a scene graph node.
See Also

JointObject

RigidBodyController