C4 Engine
C4 Engine API Documentation

JointObject::SetJointFlags

Defined in:  C4Joints.h
Sets the joint flags.
Prototype

void SetJointFlags(uint32 flags);

Parameters
flags The new joint flags. See below for possible values.
Description
The SetJointFlags function sets the joint flags. The flags parameter can be a combination (through logical OR) of the following constants.
kJointBreakable The joint can be broken if enough force is applied.
kJointConstrainTwistPosition The twist positions of bodies connected to the joint are constrained (universal joint only).
kJointLimitDistance The joint enforces a limited translation distance (cylindrical and prismatic joints only).
kJointLimitAngle The joint enforces a limited rotation angle (all joints except prismatic).
The initial value of the joint flags is 0.
See Also

JointObject::GetJointFlags