Recent content by sydan

  1. S

    Calculating orbits of moons, when both the planet and star are involved.

    Hi, thanks for the comment. I haven't had time to test much but I've found that the total energy of the system gradually decreases. This sort of makes sense as there's no such thing as heat or sound in the simulation so collisions are approximated. But generally I can't tell if the decrease is...
  2. S

    Calculating orbits of moons, when both the planet and star are involved.

    Did some more tests. I found that moons orbit planets that are moving with consistent velocity completely fine if there's only one or two moons involved. Lots of moons cause too much disturbance for orbits to be maintained. Moons and planets rotating around a sun doesn't work at all, even if...
  3. S

    Calculating orbits of moons, when both the planet and star are involved.

    Awesome! Sounds pretty close to my problem. This sounds like a reasonable solution. I'd have to really thrash it out, but I feel you're close to the correct answer. Thanks for the hint :) I'm not too experienced with how kinetic energy will affect the situation. What's the maths for it...
  4. S

    Calculating orbits of moons, when both the planet and star are involved.

    It's pretty close! I put time up to 100x and left it for several hours and there was no deviation in 2 body orbits. Fall towards the star.. I set the planet up to move in a straight line... If the moons are not given the same velocity they just get left behind. If they are given the same...
  5. S

    Calculating orbits of moons, when both the planet and star are involved.

    Hi there! I'm developing a game that involves simulating a star system. I'm using the Unity engine and its physics engine. I've got gravity working perfect. I've also developed an algorithm that works out how much force you would need to apply to a body to start it orbiting around another...
Back
Top