3D Gravity-Engine with Three.js

Gravitational Simulation Engine for Planets and Particles in 3D with Three.js (WebGL library)

Live Démo or : here

Earth-Moon simulation

It works well on Chrome and Safari but not good as well on IE.

Looking forward to contacting me on : adalrik@gmail.com

Have a nice fun !

Special Commands and GUI :

Do not hesitate to add a Big Star (with bottom righ dat control GUI) on the scene center during or after the simulation.

Or change the main characteristics (Mass, direction, state, color..) of Planets/Particles in left control selection panel.

History :

This project is a branch of this one initial : http://codeblock.at/planets/ (demo)

Initial source code : https://codepen.io/Grilly86/pen/GBaCE by https://codepen.io/Grilly86/

Roadmap

I would to optimize the controls of OrbitControls and Free Cam (FirstPersonControls) because it is still a bit buggy at the moment, in order to switch easier between the different kind of Controls and Cameras and have a better experience in the 3D Universe.

Other :

Another JavaScript gravity engine (in 2D with p5.js)