book_4_sparkGenerated
code_blocksInput

Description

The Vector3Int.Down field is a static, read-only field of type Vector3Int. It represents a directional vector pointing downwards in a 3D integer space. The vector has its Z component set to -1, while the X and Y components are set to 0. This is useful for operations that require a consistent representation of the downward direction in integer-based 3D space calculations.

Usage

You can use Vector3Int.Down whenever you need a predefined vector that points downwards. This is particularly useful in scenarios such as physics calculations, grid-based movement, or any situation where a consistent downward direction is required.

Example

// Example usage of Vector3Int.Down
Vector3Int position = new Vector3Int(0, 0, 10);
Vector3Int newPosition = position + Vector3Int.Down;
// newPosition is now (0, 0, 9)