Content Warning
When a #spacecraft is launched from #Earth 馃實, its forward #velocity combined with the gravitational pull of Earth cause it to travel in a curved path. As the spacecraft heads toward another #planet 馃獝, the #gravitational pull of that planet factors in to the path the spacecraft takes. https://www.jpl.nasa.gov/edu/teach/activity/lets-go-to-mars-calculating-launch-windows
The spacecraft departs #Earth 馃實 at a #speed of about 39,600 kph. The trip to #Mars will take about seven months and about 480 million kilometers https://mars.nasa.gov/mars2020/timeline/cruise