Vector3 Left { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Left property of the Rotation struct provides the left-hand direction vector of the current rotation. This is useful for determining the leftward direction relative to the rotation's orientation in 3D space.

Usage

Use the Left property to obtain a Vector3 that represents the left direction based on the current rotation. This can be particularly useful in scenarios where you need to calculate movement or orientation adjustments relative to the left side of an object.

Example

// Example of using the Left property
Rotation rotation = Rotation.From(0, 90, 0); // Create a rotation with 90 degrees yaw
Vector3 leftDirection = rotation.Left;

// Output the left direction
// leftDirection should be approximately Vector3(-1, 0, 0) if the forward is Vector3(0, 0, 1)