I created this project as I had being playing a lot of elite dangerous and was curious about how I to create the mechanics. I have started off by randomly creating planets around the player within a certain radius. This is done by having a vector of planets. If the planet goes outside the radius then it is assigned another texture, random radius and random spin speed. This planet is then placed randomly within a distance of the player.