Like with the planets. Simulating gravity on worlds and when u go far from an world the gravity drops to 0.
I wonder if its even possible
Develop games in your browser. Powerful, performant & highly capable.
Angry Birds Space tutorial might help.
http://www.scirra.com/forum/favourite-feature-entries-thread_topic53505_page2.html