# Tagged Questions

67 views

### Simulating orbits using Newton's Law of Universal Gravitation

I've been having a go at programming an orbital simulator from scratch (without using any existing libraries) using the formula below to find the acceleration first for particle A and then for ...
83 views

### Using 2D position, velocity, and mass to determine the parametric position equations for an orbiting body

I have a gravity-related question. I am programming an orbit simulator. I have everything up and running, but I would like to render the smaller body's orbital path (the larger body is fixed). To do ...
39 views

### Why turning velocity of star towards point “A” makes it's satelites, change their apoapsis to side opposite of velocity vector?

Why turning velocity of star towards point "A" makes it's satelites, change their apoapsis to side opposite of velocity vector? Sentence above turned a bit crazy or not understandable (possible ...
82 views

### Determinstic implementation Sphere of Influence change using Patched conic approximation

wasn't 100% sure which StackExchange to ask this on, as it could be related to Gamedev (as it's for a game), maths (as it's a approximation model rather than a physical description) or StackOverflow ...
146 views

### Determine if an object is in orbit

I am planning on doing a space simulation program with full physics and as part of a hack to avoid too many issues with number precision I was going to switch orbiting objects to a calculated orbit ...
131 views

### For two planets in a 2:1 mean motion resonance , where will their periastron and apastron points be?

I want to animate the changing orbits of planets when they enter a mean motion resonance. Using a 2:1 resonance, I want to show a low-mass inner planet and a low-mass outer planet being tugged by a ...
711 views

### Calculating specific orbital energy, semi-major axis, and orbital period of an orbiting body

Is it possible to calculate the specific orbital energy $ϵ$, the semi-major axis $a$, and the orbital period $T$ (or $P$) without any of them being available to you? The values I do have available to ...
122 views

### Can the axis of rotation of a celestial body point in any arbitrary direction?

I am developing a small computer program that involves moderately simple simulation of elliptical Kepler orbits for fictional, generated star systems. I'm doing this without much prior knowledge of ...
80 views

### Simulating an orbit, primary is not at focus

I've been toying around with some -very- simple orbital simulators, mostly using preexisting physics libraries (I took a layman's stab at doing it with vectors too). The thing that is confusing me is ...
735 views

### How to calculate linar velocity of planet orbit?

I try to simulate a solar system with planets (with random mass) placed randomly around a sun with a mass $X \times \text{solar mass}$. The simulation is going well when I use real data ...
I'm currently writing a code to generate solar system and $N$ number of planets / moons. I use real data to test (earth / sun / moon data). I succeeded in placing the earth and make it orbit around ...