Vector2 Down { get; set; }

robot_2Generated
code_blocksInput

Description

Returns a 2D vector with the Y component set to -1. This vector represents the downwards direction in 2D space.

Usage

The Vector2.Down property is a static property of the Vector2 struct. It can be used whenever a downward direction vector is needed in 2D space, such as in physics calculations or when determining movement directions.

Example

// Example of using Vector2.Down
Vector2 downDirection = Vector2.Down;

// Use downDirection in a movement calculation
Vector2 position = new Vector2(10, 10);
Vector2 newPosition = position + downDirection * 5;
// newPosition will be (10, 5)