Vector3 Normal { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Normal property of the Vector3Int struct returns a unit vector (a vector with a length of 1) that represents the direction of the original vector. This property is useful for obtaining the direction of a vector without regard to its magnitude. Note that the returned value is a Vector3, not a Vector3Int, as unit vectors typically have non-integer components.

Usage

To use the Normal property, simply access it from an instance of Vector3Int. This will give you a Vector3 representing the direction of the original vector.

Example

Vector3Int myVector = new Vector3Int(3, 4, 5);
Vector3 unitVector = myVector.Normal;
// unitVector now holds the normalized direction of myVector.