Vector3.Distance impacts your Game Performance in Unity, Destroy it
Check our Little Post why you shouldn't use Vector3.Distance #Unity #Performance #IndieDev #GameDev #IndieGameDev #UnityPerformance
Don’t use Vector2.Distance or Vector3.Distance Yes, do not use it. There are better ways to do the distance check. Just subtract the 2 vectors and get the sqrMagnitude value, which is the same as you would do a Vector2/3.Distance check. Vector2.Distance or Vector3.Distance is a wrapper and inside the function nothing happens other than positionOne – positionTwo + Square calculation and in return…
View On WordPress









