which one is good for optimization

hi

to calclute the distance between 2 gameobjects i do it manualy
xx+yy+z*z
is it better using this method or better use sqrMagnitude

thanks

xx+yy+z*z squarerooted right?

yes

Then ill go with the sqrMagnitude.

ok thanks