vbnet3d
New member
Don't use square root for these and problem solved! Squared magnitude is fine for comparisons and makes the checks incredibly fast instead.
I may end up doing this if needed. I benchmarked with square magnitude and it didn't seem to make a perceptible difference. The real performance hit is the zombies themselves. The actual number of distance checks isn't high, so I felt comfortable sticking with the standard Vector3.distance method for the time being.