C4 Engine
C4 Engine API Documentation

class Joint

Defined in:  C4Joints.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::GetFirstConnectedRigidBody Returns the first rigid body connected to a joint.
Joint::SetFirstConnectedRigidBody Sets the first rigid body connected to a joint.
Joint::GetSecondConnectedRigidBody Returns the second rigid body connected to a joint.
Joint::SetSecondConnectedRigidBody Sets the second rigid body connected to a joint.
Joint::BreakJoint Breaks a joint's connections.
Constructor

Joint(JointType type);

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 Spherical joint.
kJointUniversal Universal joint.
kJointDiscal Discal joint.
kJointRevolute Revolute joint.
kJointCylindrical Cylindrical joint.
kJointPrismatic Prismatic joint.
Base Classes
Node A Joint node is a scene graph node.
See Also

JointObject

RigidBodyController