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!
🔗 Binary Impact
#نکته #یونیتی
👉 @UnityEngine3D 👈
When normalizing i.e. a Unity.Mathematics float3 use the normalizesafe method to avoid NaN.
It works for Vector3 though!
🔗 Binary Impact
#نکته #یونیتی
👉 @UnityEngine3D 👈