Computing parabolic orbital trajectory

Click For Summary
SUMMARY

This discussion focuses on computing parabolic orbital trajectories in a game involving a rocket orbiting a planet. The key challenge addressed is determining the parameters of a parabolic path when the eccentricity (e) equals 1. Two solutions are provided: the first involves using the eccentricity vector to locate the directrix geometrically, while the second utilizes a quadratic Bezier curve to define the parabola through control points based on the rocket's position and velocity vector.

PREREQUISITES
  • Understanding of orbital mechanics and eccentricity in conic sections.
  • Familiarity with quadratic Bezier curves and control point calculations.
  • Knowledge of vector mathematics, particularly in relation to motion and direction.
  • Experience with game development concepts, specifically in trajectory simulation.
NEXT STEPS
  • Research the mathematical derivation of parabolic trajectories in orbital mechanics.
  • Learn about the properties of conic sections and their applications in physics.
  • Explore advanced Bezier curve techniques for more complex trajectory simulations.
  • Investigate geometric methods for solving orbital mechanics problems in game development.
USEFUL FOR

Game developers, physicists, and mathematicians interested in simulating realistic orbital mechanics and trajectory calculations in interactive environments.

BryceCo
Messages
3
Reaction score
0
I wrote a game with a rocket that orbits a planet, and you can change the orbit with thrusters. As part of it I draw the predicted orbit for the rocket. To do this I compute the eccentricity vector, then the eccentricity e, then the major and minor axis of the ellipse or hyperbola as appropriate. With these values computing the equation of the orbit's elliptical or hyperbolic path is straightforward. This all works great in my app. However it's entirely unclear to me how to compute the parabolic path when e=1. I know its the limit of the elliptical orbit as e approaches 1, but I don't know how to compute the parameters when e=1 exactly. Specifically, how do I compute the distance from the focus to the vertex of the parabola?
 
Physics news on Phys.org
It turns out this can be solved geometrically.

Solution 1: The eccentricity vector points at the periapsis, so the directrix of the parabola is perpendicular to the eccentricity vector. Since the distance from the planet to the rocket is equal to the distance from the rocket to the directrix (by definition) you can find the location of the directrix by moving away from the rocket in the direction of the eccentricity vector for a distance equal to the orbital distance.

Solution 2: The goal is to draw the parabola, and I'm using a quadratic bezier to draw it which requires 3 control points. One of the control points is the rocket itself. The opposite control point is the mirror position on the opposite side of the parabola. The central control point is the intersection of the lines tangent to the parabola at the two opposoite control points. The tangents are defined exactly by the rocket's velocity vector, and by symmetry the intersection is also the intersection with the eccentricity vector, so that gives us the middle control point without knowing the opposite point. I can then compute the opposite control point easily.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
2K
  • · Replies 62 ·
3
Replies
62
Views
8K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
6K
  • · Replies 32 ·
2
Replies
32
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K