Vector3 Forward { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Forward property of the Rotation struct provides the forward direction vector of the rotation. This vector represents the direction that is considered "forward" based on the current rotation.

Usage

Use the Forward property to obtain the forward direction of a rotation. This is particularly useful in scenarios where you need to determine the direction an object is facing or moving towards in a 3D space.

Example

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

// forwardDirection now holds the forward vector of the rotation, which is useful for movement or orientation calculations.