A static field representing a vector with the X component set to -1, indicating the backward direction in 3D space. This is useful for defining directions in a 3D environment, particularly when working with transformations or physics calculations.
A static field representing a vector with the X component set to -1, indicating the backward direction in 3D space. This is useful for defining directions in a 3D environment, particularly when working with transformations or physics calculations.
Use Vector3.Backward
when you need to specify a backward direction in your 3D calculations. This can be particularly useful in scenarios such as moving an object backward or applying a force in the backward direction.
// Example of using Vector3.Backward Vector3 position = new Vector3(0, 0, 0); Vector3 backwardDirection = Vector3.Backward; // Move the position backward by 5 units position += backwardDirection * 5; // Output the new position // Expected output: (-5, 0, 0)