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

if (steering.angular == 0.0f)

From

Cover of Unity 5.x Game AI Programming Cookbook

Note

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