Programming Orbit Expansion: Change Radius w/ Centripetal Force

  • Context: Undergrad 
  • Thread starter Thread starter rrfoote
  • Start date Start date
  • Tags Tags
    Expanding Orbit
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
rrfoote
Messages
1
Reaction score
0
I am programming a game that involves objects orbiting in 3d space circularly around an axis. I have the orbits working for a fixed radius using centripetal forces, however, I want to be able to change the radius while the program is running. I have tried to just make the magnitude of the centripetal force = (mass*(velocity^2))/radius, however this fails if i change the radius during the program. What forces should I use to change the radius of the orbit?
 
Physics news on Phys.org
rrfoote said:
I am programming a game that involves objects orbiting in 3d space circularly around an axis. I have the orbits working for a fixed radius using centripetal forces, however, I want to be able to change the radius while the program is running. I have tried to just make the magnitude of the centripetal force = (mass*(velocity^2))/radius, however this fails if i change the radius during the program. What forces should I use to change the radius of the orbit?

In reality, increasing the velocity increases the orbit radius. The orbital velocity equals the square root of the Universal Gravitational Constant x mass of attracting body (like the sun) divided by the radius of the orbit.

If the program is set up so that you need to change a force to change orbital radius, a lower centrifugal force will give a greater radius.