C4 Engine
C4 Engine API Documentation

Joint::BreakJoint

Defined in:  C4Joints.h
Breaks a joint's connections.
Prototype

void BreakJoint(void);

Description
The BreakJoint function breaks the connections to the first and second rigid bodies influenced by a joint, if they exist, and deletes the internal contact used by the Physics Manager. The built-in connectors belonging to the joint node continue to exist, but they are no longer linked to other nodes after this function returns. Any rigid bodies that were connected to the joint are awakened, and this process continues recursively through all bodies reachable in the contact graph.
See Also

Joint::GetFirstConnectedRigidBody

Joint::GetSecondConnectedRigidBody

Joint::GetFirstConnectedRigidBody

Joint::SetFirstConnectedRigidBody