Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 740 Bytes

File metadata and controls

21 lines (11 loc) · 740 Bytes

2D spacetime simulator with 2 Bodies of mass.

Creates "Earth" and "Moon"

Pressing B shoots "light rays" from left to right. These rays will take the "shortest" path in the bend.

Movement of "Earth" Body using mouseposition GIF: 2026-02-0722-43-43-ezgif com-video-to-gif-converter (1)

"Regular" Placement :

2026-02-0722-44-40-ezgif com-video-to-gif-converter

Original Code is based on https://www.youtube.com/@zipped1214 Tutorial

Part 1: https://www.youtube.com/watch?v=oTWnV5su3m0

Differences, changed from newtonian gravity to use Relativity instead.