In this public domain simulator all bodies attract each other. It is the second version of Gravitation simulator (I made a gravitational simulator and it is under public domain) where there was only one attractor point.
You can play it directly by opening MyGame.jar in the “dist” folder. You can move with ‘ASDW’ and shoot balls with left click. You will see how the balls attract each other. More details in the README.
This will make life easier for those who want to create games set in space, astronomical and scientific simulations, teach physics by giving the program educational applications or simply have a good time playing and improving it through programming in JMonkeyEngine.
I could not have done it without the help of Brackeys (https://www.youtube.com/watch?v=Ouu3D_VHx9o), on whom I based the code when moving the logic of Unity to JMonkeyEngine, a much more difficult task than you imagine. It is also public domain (https://github.com/Brackeys/Gravity-Simulation-Tutorial).
Stephen Gold’s help was also vital for Gravitation Simulator (https://hub.jmonkeyengine.org/u/sgold/summary).
License: Unlicense (see in Gravitation simulator 2 github repository or https://unlicense.org/).
Now with Gravitation Simulator 2 I have the base to work on a new and much bigger project: UniVersor.