APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Earth and Moon in 3D JS Model Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Earth and Moon in 3D JS Model 

written by Francisco Esquembre

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.

Last Modified September 30, 2014

This file has previous versions.

Source Code Documents

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.

Last Modified October 28, 2023

This file has previous versions.

OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book