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.

Browse categories

gravity: 8 Examples

Theatre files

  • Launch and interact with asteroids in a gravity-based space simulation. Click/drag to launch!
  • mini-space-4 thumbnail
    A gravity-based celestial simulation featuring asteroids bouncing and orbiting planets in a mini-space world.
  • mini-space-3 thumbnail
    A gravity-based space simulation featuring asteroids orbiting planets with collision physics.
  • mini-space-2 thumbnail
    A gravity-based physics simulation featuring planets, asteroids, and orbital mechanics.
  • hut-example thumbnail
    Simulates gravitational physics using a Quad-Tree and Barnes-Hut algorithm for efficient body motion.
  • gravity-rk4 thumbnail
    Simulate multi-body orbital mechanics using a high-precision Runge-Kutta 4 (RK4) gravity integrator.
  • gravity-points-2 thumbnail
    Simulate physics-based points with gravity, collision bouncing, and advanced angular rotation.
  • gravity-pairwise thumbnail
    Simulate gravitational physics with pairwise forces to create dynamic, orbiting point masses.