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.
Acknowledgments:
I could not have done it without the help of Brackeys (How to Simulate Gravity in Unity - YouTube), 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 (GitHub - Brackeys/Gravity-Simulation-Tutorial: Project files for a tutorial on creating a Gravity Simulation in Unity).
Stephen Gold’s help was also vital for Gravitation Simulator (Profile - sgold - jMonkeyEngine Hub).
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.