Description
The Right
property of the Rotation
struct provides the right-hand direction vector of the current rotation. This is useful for determining the direction that is perpendicular to both the forward and up directions in a right-handed coordinate system.
Usage
To access the right-hand direction of a rotation, use the Right
property on an instance of the Rotation
struct. This property returns a Vector3
representing the right direction.
Example
// Example of using the Right property
Rotation rotation = Rotation.FromAxis(Vector3.Up, 90);
Vector3 rightDirection = rotation.Right;
// rightDirection now holds the vector pointing to the right of the rotation.