Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

Latest commit

 

History

History
18 lines (15 loc) · 755 Bytes

File metadata and controls

18 lines (15 loc) · 755 Bytes

Gravity Simulator

A gravity simulator, built to understand how celestial bodies warp the fabric of space-time and interact with each other. Inspired by particle.js and the recently released photograph of a black hole by the EHT research group.

screenshot

Usage

Before using the simulator, define:

  • amountOfObjects - The number of objects to be rendered initially. I reccomend about 78-100. (Default: 100).
  • g - The gravitational constant. (Default: 0.4)
  • slowDown - A numerical factor used to slow down the animation. (Default: 26)

Demo

here