- #1
Ameise
- 3
- 0
Hello,
I am working on a software application which will require me to generate objects in orbit around other objects.
Now, this is my belief, and I am asking for correction if I am wrong---
If given two objects, O1 and O2, with masses M1 and M2, and I want to make O2 orbit O1 at an orbit at distance r with eccentricity e, will this work:
force_for_orbit = (G * ((M1 * M2) / r^2)) * (e + 1)
velocity = force_for_orbit / M2
and the vector for velocity would need to be a perfect right angle (either direction) from the vector for the direction of the gravitational force towards M1, or in other words, the vector for velocity would need to lie tangent to the curve that would be generated by the orbit?
My belief is that a force that is equal to the force being applied by gravity but being applied 90 degrees opposing to it will cause the object to move in a circle, IE with eccentricity of 0. Because multiplying by 0 will not work, I add to make it work... if e becomes greater and greater it will still work until > 1 which escapes gravity.
Thank you!
I am working on a software application which will require me to generate objects in orbit around other objects.
Now, this is my belief, and I am asking for correction if I am wrong---
If given two objects, O1 and O2, with masses M1 and M2, and I want to make O2 orbit O1 at an orbit at distance r with eccentricity e, will this work:
force_for_orbit = (G * ((M1 * M2) / r^2)) * (e + 1)
velocity = force_for_orbit / M2
and the vector for velocity would need to be a perfect right angle (either direction) from the vector for the direction of the gravitational force towards M1, or in other words, the vector for velocity would need to lie tangent to the curve that would be generated by the orbit?
My belief is that a force that is equal to the force being applied by gravity but being applied 90 degrees opposing to it will cause the object to move in a circle, IE with eccentricity of 0. Because multiplying by 0 will not work, I add to make it work... if e becomes greater and greater it will still work until > 1 which escapes gravity.
Thank you!