Description
The Vector3Int.Right
field is a static, public field of type Vector3Int
. It represents a direction vector pointing to the right, with the Y component set to 1 and the other components set to 0. This field is useful for operations that require a standard rightward direction in a 3D integer vector space.
Usage
You can use Vector3Int.Right
whenever you need a predefined vector pointing to the right direction in a 3D space. This is particularly useful in scenarios involving directional calculations, such as moving an object to the right in a grid-based system.
Example
// Example of using Vector3Int.Right
Vector3Int position = new Vector3Int(0, 0, 0);
Vector3Int newPosition = position + Vector3Int.Right;
// newPosition is now (0, 1, 0), moved one unit to the right