Skip to main content

Vector Magnitude

A Vector Magnitude checks whether the magnitude of a vector satisfies a comparison rule.

The vector's magnitude is evaluated using a Numerable Comparer.

Fields​

FieldDescription
ComparerThe Numerable Comparer used to evaluate the vector's magnitude.

Supported Types​

  • Vector2
  • Vector3
  • Vector2Int
  • Vector3Int

Example​

Moving: the length of a MoveDirection Stat is above 0.1. Comparer Greater 0.1.

MoveDirectionMagnitudePasses
(0, 0, 0)0no
(0.6, 0, 0.8)1yes