Description
The EyeWorldTransform
property provides the transform of the eyes in world space. This is calculated based on the EyeSource
property if it is set. It is useful for determining the position and orientation of the character's eyes in the game world, which can be used for various purposes such as rendering eye-related effects or calculating line of sight.
Usage
To access the EyeWorldTransform
property, you need to have an instance of the CitizenAnimationHelper
class. This property is read-only and provides a Transform
object representing the world space transform of the character's eyes.
Example
// Assuming 'animationHelper' is an instance of CitizenAnimationHelper
Transform eyeTransform = animationHelper.EyeWorldTransform;
// Use the eyeTransform for further calculations or rendering
Vector3 eyePosition = eyeTransform.Position;
Quaternion eyeRotation = eyeTransform.Rotation;