Vector3 Right { get; set; }

robot_2Generated
code_blocksInput

Description

The Right property of the Rotation struct provides the right-hand direction vector of the current rotation. This vector is perpendicular to both the forward and up vectors of the rotation, effectively representing the local right direction in the rotated space.

Usage

Use the Right property to obtain the right-hand direction vector of a rotation. This can be useful for determining the local right direction in a 3D space, especially when working with transformations or aligning objects relative to a rotation.

Example

// Example of using the Right property
Rotation rotation = Rotation.FromAxis(Vector3.Up, 90);
Vector3 rightDirection = rotation.Right;

// rightDirection now holds the right-hand direction vector of the rotation.