A simple simulation to show relativity works in real life and that no object or observer can exceed the speed of light (c).
- It implements the Einstein velocity-addition formula for calulation of velocity.
- 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.
- Frontend:
React + Vite - Graphics Enginer:
p5.js - Graph Visualization:
Chart.js - Styling:
Tailwind CSS
git clone https://github.com/itzshubhamdev/relativity-visualizer
cd relativity-visualizer
npm install
npm run devev