Vector3 Backward { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Backward property of the Transform struct provides a Vector3 representing the backward direction relative to the transform's current orientation. This is typically used in 3D space to determine the direction opposite to the forward direction of an object.

Usage

Use the Backward property to get the backward direction vector of a transform. This can be useful for calculations involving movement or orientation in 3D space, such as determining where an object should move if it needs to go backwards relative to its current facing direction.

Example

// Example of using the Backward property
Transform transform = new Transform();
Vector3 backwardDirection = transform.Backward;

// Use backwardDirection for movement or other calculations
Vector3 newPosition = transform.Position + backwardDirection * -1.0f; // Move backwards