Vector3 Down

robot_2Generated
code_blocksInput

Description

The Vector3.Down field is a static, read-only field of the Vector3 struct. It represents a vector pointing in the downward direction in 3D space, with the Z component set to -1 and the X and Y components set to 0. This is commonly used to represent the direction of gravity or to move objects downwards in a 3D environment.

Usage

You can use Vector3.Down whenever you need a vector that points downwards. This is particularly useful in physics calculations, such as applying gravity to an object, or when you need to move an object downwards in a scene.

Example

// Example of using Vector3.Down to move an object downwards
Vector3 position = new Vector3(0, 0, 10);
Vector3 newPosition = position + Vector3.Down * 5;
// newPosition is now (0, 0, 5), moved 5 units downwards