1
vote
0answers
36 views

Choosing proper centripedal force in Newtonian gravitational forces [closed]

I am trying to do an orbit simulation, I took Newton's law of Newtonian gravitational forces. It seems to work correct, but I can't really determine the velocity of an object needed to stay in free ...
0
votes
0answers
83 views

Calculate trajectory of projectile with gravity from disk planets in 2D?

I'm making a 2D game where you control a spaceship and fly between disk-formed planets of differing size (mass/pull). The planets are small and you can fly near several at once. I need to calculate ...
0
votes
0answers
91 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 ...
4
votes
3answers
167 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 ...
0
votes
2answers
41 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 ...
4
votes
1answer
176 views

Velocity distribution in Plummer's models and others mass distributions

The Plummer's sphere is an model for the mass density in a globular cluster of stars. For an $N$-body simulation I have initialized the position of $N$ masses with a Monte-Carlo technique but cannot ...
0
votes
2answers
119 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 ...
1
vote
1answer
172 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 ...
2
votes
1answer
996 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 ...
1
vote
1answer
101 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 ...
2
votes
1answer
116 views

Mutual Interaction of $N$-Particles in a Cartesian Plane

I am making a simulation of $N$-Particles in a cartesian plane and need help with understanding the basics. At anytime, in my particle system, I will have $N$ number of particles. I am treating the ...
2
votes
0answers
102 views

What is the correct way of integrating in astronomy simulations? [closed]

I'm creating a simple astronomy simulator that should use Newtonian physics to simulate movement of plants in a system (or any objects, for that matter). All the bodies are circles in an Euclidean ...
2
votes
1answer
797 views

Simulating Gravity in 3D Game?

Alright, I am writing a space simulator for a 3D game and I would like to implement gravity of objects into it. Is there a nice way to find a velocity vector which can be added to my engine output ...
1
vote
3answers
459 views

Numerical simulation of mechanics problem

Say I have a planet and shoot something with a given velocity, which is a significant portion of the escape velocity, in a given angle into the sky. It has some initial velocity and there is the force ...