gravity Examples
The theatre provides a presentation layer for files in the
theatre/directory
The theatre files showcase Polypoint features.
The files within this directory are just standard JavaScript files.
They work in a standard setup, but the Polypoint site will access additional meta data within the file, such as title and imports.
Checkout the source code within the theatre directory or run one of the examples.
gravity: 8 Examples
Theatre files
-
Simulate physics-based points with gravity, collision bouncing, and advanced angular rotation. -
A gravity-based physics simulation featuring planets, asteroids, and orbital mechanics. -
A gravity-based space simulation featuring asteroids orbiting planets with collision physics. -
A gravity-based celestial simulation featuring asteroids bouncing and orbiting planets in a mini-space world. -
Launch and interact with asteroids in a gravity-based space simulation. Click/drag to launch!
-
Simulates gravitational physics using a Quad-Tree and Barnes-Hut algorithm for efficient body motion. -
Simulate gravitational physics with pairwise forces to create dynamic, orbiting point masses. -
Simulate multi-body orbital mechanics using a high-precision Runge-Kutta 4 (RK4) gravity integrator.