Understanding Orbital Mechanics & Elliptical Paths

Click For Summary
SUMMARY

This discussion focuses on modeling orbital mechanics in a 2D video game environment, specifically regarding elliptical orbits around an attractor. The user successfully calculates orbital positions using parameters such as semi-major axis, eccentricity, mean anomaly at epoch, and argument of periapsis, leveraging the vis-viva equation for velocity. To adapt the orbit after applying acceleration, the user seeks methods to recompute orbital elements and considers using numerical integration techniques like leapfrog or Euler methods for simulating motion. The conversation emphasizes the importance of understanding both analytical and numerical approaches to accurately depict orbital changes.

PREREQUISITES
  • Understanding of elliptical orbits and their parameters (semi-major axis, eccentricity, etc.)
  • Familiarity with the vis-viva equation for calculating orbital velocity
  • Knowledge of numerical integration methods (e.g., leapfrog, Euler)
  • Basic concepts of force and acceleration in orbital mechanics
NEXT STEPS
  • Research how to recompute orbital elements after applying acceleration
  • Learn about numerical integration methods for simulating orbital dynamics
  • Explore the equations of an ellipse for alternative modeling approaches
  • Investigate instantaneous acceleration effects on velocity vectors and orbit recalculation
USEFUL FOR

Game developers, aerospace engineers, and students of physics interested in simulating orbital mechanics and understanding the dynamics of elliptical paths in a computational environment.

whiterook6
Messages
4
Reaction score
0
Hi. I was playing a video game where, in one level, you are in an orbit around an attractor. The game was 2D, so there's no inclination, etc. The game showed the projected path of the body around the attractor. When you used the games controls to thrust in a direction, it would show the projected path changing, to the point of turning red when you would eventually intersected the attractor.

I've been working on a project like this, where spacecraft orbit a planet or moon or something in an elliptical orbit. I can calculate the position along the orbit for any given time t, and can get the velocity from the vis-viva equation and the tangent to the ellipse at that point. To model the orbit I use a semi-major axis, eccentricity, mean anomaly at epoch, and argument of periapsis (I got a lot of this from wikipedia; many of the resources I've been pointed at have been over my head.)

If I apply an acceleration, I would expect the orbit to change. How can I recompute those orbital elements to show the new path?

Also, instead of using the Kepler elements, I could also just use the equations for an ellipse. Would those be easier for doing this sort of work?
 
Astronomy news on Phys.org


If you want to re-create the game idea you should look into numerical integration methods, e.g. leapfrog/euler:

For timestep n, use mass positions to calculate Force and then use that force to find particles new velocity and position
v(n+1/2) = v(n-1/2) + F*dt/m

x(n+1) = x(n) + v(n+1/2)*dt

where dt = timestep. Look it up for better explanation :-)

If you want to do it analyticaly, maybe a instantaneous acceleration to a new velocity vector and then re-calculate the orbit?

Hope it helps.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 86 ·
3
Replies
86
Views
9K
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K