Vector3 Forward { get; set; }

robot_2Generated
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 instance. This can be useful for determining the direction an object is facing in 3D space.

Example

// Example of using the Forward property
Rotation rotation = Rotation.From(45, 30, 0);
Vector3 forwardDirection = rotation.Forward;

// Use forwardDirection for movement or orientation
// For example, moving an object forward
Vector3 newPosition = currentPosition + forwardDirection * speed * deltaTime;