#UnityTips
Normalizing a zero vector is mathematically undefined and returning NaN within the Unity.Mathematics lib!When normalizing i.e. a Unity.Mathematics float3 use the normalizesafe method to avoid NaN.
It works for Vector3 though!#gamedev #indiedev pic.twitter.com/A2BOLtZrox
— Binary Impact (@BinaryImpactG) August 6, 2024