Vector3 Left { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Left property of the Transform struct provides the left direction vector relative to the transform's current orientation. This vector is perpendicular to both the Up and Forward vectors, effectively pointing to the left side of the object when looking in the direction of the Forward vector.

Usage

Use the Left property to determine the leftward direction from the perspective of the transform's current orientation. This can be useful for calculations involving movement or orientation adjustments relative to the object's local space.

Example

// Example of using the Left property
Transform transform = new Transform();
Vector3 leftDirection = transform.Left;

// Use the leftDirection vector for movement or orientation
Vector3 newPosition = transform.Position + leftDirection * 5.0f;