How do I move all objects in a level around player depending on input?

Also, does it still bog the system down with only about 5 objects (planets) in sight at a time? Anything smaller than that gets despawned when it’s too far away for the player to see anymore.