The Earth and Moon in 3D JS model provides a simple implementation of the two-body problem in 3D. The simple model is a good test for WebGL support. Drag the mouse over the scene to rotate it. Then, click the Play/Pause button.
The Earth and Moon in 3D JS Model was developed using the Easy Java Simulations (EJS) version 5. It is distributed as a ready-to-run html page and requires a browser or a tablet with JavaScript and WebGL support.
Earth and Moon 3D JS Source Code
This source code zip archive contains an XML representation of the Earth and Moon 3D JS Model. Unzip this archive in your EJS workspace to compile and run this model using EJS 5. Although EJS is a Java program, EJS 5 creates a stand alone JavaScript program from this source code. download 452kb .zip
Last Modified: October 28, 2023
previous versions
F. Esquembre, Computer Program EARTH AND MOON IN 3D JS MODEL (2013), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13013&DocID=3581).
Esquembre, F. (2013). Earth and Moon in 3D JS Model [Computer software]. Retrieved February 11, 2025, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13013&DocID=3581
Esquembre, Francisco. "Earth and Moon in 3D JS Model." https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13013&DocID=3581 (accessed 11 February 2025).
%A Francisco Esquembre %T Earth and Moon in 3D JS Model %D 2013 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13013&DocID=3581 %O application/javascript
%0 Computer Program %A Esquembre, Francisco %D 2013 %T Earth and Moon in 3D JS Model %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13013&DocID=3581
Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.