Facebook Twitter YouTube

Joint::SetSecondConnectedRigidBody

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

void SetSecondConnectedRigidBody(Node *node);

Parameters
node The node representing the second rigid body.
Description
The SetSecondConnectedRigidBody 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::GetSecondConnectedRigidBody

Joint::GetFirstConnectedRigidBody

Joint::SetFirstConnectedRigidBody

Joint::BreakJoint