Facebook Twitter YouTube

Joint::SetFirstConnectedRigidBody

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

void SetFirstConnectedRigidBody(Node *node);

Parameters
node The node representing the first rigid body.
Description
The SetFirstConnectedRigidBody function sets the first 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.

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

Joint::GetFirstConnectedRigidBody

Joint::GetSecondConnectedRigidBody

Joint::SetSecondConnectedRigidBody

Joint::BreakJoint