Gravitation


Click and drag - create velocity vector.
(Hold space to use "push vector".)

The biggest feature in this system is the collision handler I wrote - an incident particle reflects accurately when it collides with the surface of the circle. I combined this handler with the orbit script I wrote, and a new mouse-operated control, to create what you see here. The "?" button in the corner doesn't do anything yet.

"This is a simulation of gravitational attraction to a massive body. To help demonstrate the effect, a single ghost satellite has been added into the system. (The satellite can only receive forces.) In use: instant acceleration, gravitational attraction, collision and reflected velocity on a curved surface, dynamic friction, and natural orbital phenomena. Click and drag anywhere in the field below to construct a velocity vector, then release the mouse button to commit the force."


Modified:

Copyright © John Petersen 2017.