O'Reilly logo
  • Joseph Simpson thinks this is interesting:

if (steering.linear.sqrMagnitude == 0.0f)

From

Cover of Unity 5.x Game AI Programming Cookbook

Note

Replaced with if (Mathf.Approximately(steering.linear.sqrMagnitude, 0.0f))