Skip to content

A simple simulation to show relativity works in real life and that no object or observer can exceed the speed of light (c).

Notifications You must be signed in to change notification settings

itzshubhamdev/relativity-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 31, 2025
1079c0b · · Dec 31, 2025

History

7 Commits
Dec 31, 2025
Dec 30, 2025
Dec 31, 2025
Dec 30, 2025
Dec 30, 2025
Dec 31, 2025
Dec 31, 2025
Dec 30, 2025
Dec 30, 2025
Dec 30, 2025
Dec 30, 2025

Repository files navigation

Relativity Visualizer

A simple simulation to show relativity works in real life and that no object or observer can exceed the speed of light (c).

1. Relativistic Velocity Addition:

  • It implements the Einstein velocity-addition formula for calulation of velocity. u = v + u ′ 1 + v u ′ c 2

2. Lorentz Factor ( γ )

  • Lorentz Factor is used to show the deviation in ship's width due to high velocity.
  • The time dilation is also calculated with the help of Lorentz Factor.

Tech Stack

  • Frontend: React + Vite
  • Graphics Enginer: p5.js
  • Graph Visualization: Chart.js
  • Styling: Tailwind CSS

Installation

git clone https://github.com/itzshubhamdev/relativity-visualizer

cd relativity-visualizer
npm install
npm run devev

About

A simple simulation to show relativity works in real life and that no object or observer can exceed the speed of light (c).

Resources

Stars

Watchers

Forks