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 of the transform, effectively pointing to the left side 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 operations such as aligning objects, calculating offsets, or determining movement directions in a 3D space.
Example
// Example of using the Left property
Transform transform = new Transform();
Vector3 leftDirection = transform.Left;
// Use the leftDirection vector for movement or alignment
Vector3 newPosition = transform.Position + leftDirection * 5.0f;