Skip to content

VfxNormalizeVector2Driver

15.23

Class Documentation

Edit documentation

A Vector2 driver that returns Vector2Input scaled to length 1.

The driver computes the inverse length with the fast inverse square root approximation and one Newton step, not with an exact square root. The length of the result differs from 1 by up to about 0.2%. A zero vector stays (0, 0). VfxNormalizeVector3Driver uses an exact square root.

If Vector2Input is not set, the driver writes nothing.

Properties