Early simulations with GravityLoops
GravityLoops, my gravity simulator in Interlisp and LOOPS, can finally show something on the screen.
The program now animates a body of mass like the Moon interacting under gravity with a body of mass like the Earth. The dots in the simulation window here are the bodies after 180 days of simulated time, with the Earth at left. Watch the full run.
Well, that's not much. But the code confirms the simulation loop with an offscreen buffer works well.
After putting in place some infrastructure, to get there I wrote the simulation loop, tweaked a few methods, wrote a demo function that sets up the simulation, and fixed a few bugs.
There's a lot more to do. I need to make the graphics of the body markers more complete and explanatory, control the speed of the animation, fix more bugs, and refactor to decouple some interclass dependencies. And, of course, GravityLoops will also have a user interface to control the simulation and enter the parameters.
#GravityLoops #Interlisp #Lisp
Discuss... Email | Reply @amoroso@oldbytes.space
