Setting up your Template File
Choose any two planets you'd like to travel between. Because rockets are small, we need a smaller delta to make sure the rocket doesn't just fly straight into the planets. For the sake of time, we'll only be simulating 3 bodies:
The star in the system (the Sun)
The starting planet (the Earth)
The destination planet (Mars)
Here's an example template file for this:
Note that the Rocket starts with no velocity, and that we've started the rocket at the center of the Earth. For this simplified simulation, it doesn't matter, but if we needed to, we could add the radius to the x
position to start on the surface of the Earth.
Write your own template file for your rocket launch. Remember to:
Start your rocket near the starting body
Give your rocket 0 starting speed
Create at least 4 bodies
Make sure your starting and destination planets complete their full orbits (for now)
Last updated