Does anyone know how I'd go about setting up a random solar system? I have my planets working and I know how to get them revolving around the sun properly, and how to get moons to orbit the planets, but my math seems wrong (I just did it by trial and error) because the planets are constantly coming into conjunction.
Does anyone know if planets all move at the same speed? I realise that the outer planets take alot longer to orbit the sun than the inner ones, but is this simply because they have further to travel, or do they also travel slower?
What I basically need to do is this. When I enter a solar system, it will be randomly created, based on it's number and the current date. The number is just used as a random seed which calculates which planets will exist, but then I need to locate them accurately based on the current date. The date could be used as the angle, but then obviously all the planets would be in permanent conjunction and the outer ones would fly around at huge speed. So I'm dividing the date by the orbit (e.g if it's in the orbit of the 10th planet, the angle would be date/10). As I say, this looks ok at first but the planets come into conjunction alot. I suppose it may be because the math is too basic.
Any suggestions?
By the way, this is just for a game, so it doesn't need to be highly accurate. For example, I'm quite happy for my planets to follow circular orbits, unlike real planets whose orbits are slightly eliptical. It just needs to look fairly realistic.
Does anyone know if planets all move at the same speed? I realise that the outer planets take alot longer to orbit the sun than the inner ones, but is this simply because they have further to travel, or do they also travel slower?
What I basically need to do is this. When I enter a solar system, it will be randomly created, based on it's number and the current date. The number is just used as a random seed which calculates which planets will exist, but then I need to locate them accurately based on the current date. The date could be used as the angle, but then obviously all the planets would be in permanent conjunction and the outer ones would fly around at huge speed. So I'm dividing the date by the orbit (e.g if it's in the orbit of the 10th planet, the angle would be date/10). As I say, this looks ok at first but the planets come into conjunction alot. I suppose it may be because the math is too basic.
Any suggestions?
By the way, this is just for a game, so it doesn't need to be highly accurate. For example, I'm quite happy for my planets to follow circular orbits, unlike real planets whose orbits are slightly eliptical. It just needs to look fairly realistic.