I'm currently making a "free roam" 2D space game from a birds-eye view.
I am trying to randomly spawn in asteroids around the scene so that they can be used to collide with ships, although I don't want these asteroids to spawn in the camera view because I don't want it to look like an asteroid appeared out of nowhere.
Can anyone explain to me how I can achieve this?
I don't think it is necessary for me to show my code because the only thing I really have is a simple movement script and a camera follow script.
Thank you in advance!