Vectors.SnapDirectionToAxis(Vector, number = 0.002f)

server
Modifies a vector so it snaps to the nearest axis vector (if within epsilon).

Arguments

Examples

Vectors.SnapDirectionToAxis – Modifies a vector so it snaps to the nearest axis vector (if within epsilon).