hello everyone, before i write this code i wanted to know what would be a good idea in terms of optimization, here is what i want: i`m making a space game, but i cant make planets bigger without reducing their amount or placing each one in a separate sceene, so checking in my old questions i found someone told me i could scale the object as it got near, having a smaller solar sistem seem bigger, so what would be better, have a script on the player using a foreach (GameObjects p in planets) check the distance and scale every planet, have every planet check its distance from the player and scale apropiately or maybe an other option, i apreciate your time and thank you in advanced.
Like Uldeim said, you’ll want to group up planets, then once they’re close enough you can look at them individually along with any other groups out there. Additionally, you’ll want to use distance squared rather than distance, since the square root function isn’t the quickest.