C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

Joint::SetSecondRigidBodyConnector

Defined in:  C4Contacts.h
Sets the second rigid body connected to a joint.
Prototype

void SetSecondRigidBodyConnector(Node *node);

Parameters
node The node representing the second rigid body.
Description
The SetSecondRigidBodyConnector function sets the second rigid body connected to a joint to the node specified by the node parameter. This node must have a rigid body controller assigned to it in order to be affected by the joint.

If the first rigid body connector is nullptr, then the second rigid body connector is ignored. When connecting only one node to a joint, the first rigid body connector should always be used.

The second rigid body connector is initially set to nullptr.
See Also

Joint::GetSecondRigidBodyConnector

Joint::GetFirstRigidBodyConnector

Joint::SetFirstRigidBodyConnector