Properly check for zero to prevent NaN.
Properly check for zero to prevent NaN.

The other thing before worked fine but the x component would always be zero, it
is the y coordinate we want to check.

RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine