Description
The IkLeftHand
property of the CitizenAnimationHelper
class is a GameObject
that specifies the target position for the left hand using inverse kinematics (IK). The IK system will attempt to position the left hand of the character at the location of this GameObject
in the world.
Usage
To use the IkLeftHand
property, assign a GameObject
that represents the desired position of the character's left hand. This is useful for animations where the hand needs to interact with objects in the environment, such as holding a weapon or touching a surface.
Example
// Example of setting the IkLeftHand property
// Assume 'animationHelper' is an instance of CitizenAnimationHelper
GameObject leftHandTarget = new GameObject();
leftHandTarget.Position = new Vector3(1.0f, 2.0f, 3.0f); // Set the desired position
animationHelper.IkLeftHand = leftHandTarget;