gravity/Readme.md

1.1 KiB

Gravity Simulator

Runs in a browser. Just serve index.html and associated css and js.

Uses npm for eslint.

Screenshots

A small body orbiting a pair of larger ones A body orbiting a pair, all three of similar size

TODO

  • Parameter Slider (Invisible, mouse/touch drag)
  • Selection Box
  • Object List
  • Object Detail
  • Left Button Panning
  • Middle Button Pause
  • Grid
  • Zoom Easing
  • 2-touch Pan & Zoom
  • Multi-touch Mass Create
  • Camera Rotation
    • 2-touch Rotation
    • Spinning Frame
  • Undo feature:
    • Undo "Clear Traces" Action
    • Undo "Reset
  • Time Control: Reverse Time
  • Save to LocalStorage
  • Lossy Rescaling To Widen Zoom (Handling overflow/underflow)
  • Track farthest reaches, min/max in each dimension (x, y)
  • Compute Net Angular Momentum
  • Display Net Angular Momentum
  • Calculate Work as FxD as measure of energy flux
    • Option to automatically slow time when energy flux is greater