Vector3 Backward { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Backward property of the Rotation struct provides the backwards direction vector of the current rotation. This is useful for determining the direction opposite to the forward direction in 3D space, which can be particularly helpful in scenarios such as camera control, object orientation, and physics calculations.

Usage

To access the backwards direction of a Rotation instance, simply use the Backward property. This property returns a Vector3 representing the direction.

Example

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

// Use the backwardDirection for various purposes, such as moving an object
// in the opposite direction of its current forward orientation.