Skip to content

Vector2 Get Direction

Get a direction vector from a source vector. If the source vector length is below a threshold value, leave the target vector unchanged.

Parameter Description
Source The Vector2 to get a direction from.
Threshold Minimum length of the source vector.
Get Direction Get a direction vector from source if its length is greater than the threshold.
Length The length of the direction vector.

See also