https://github.com/pol-cova/ucm
Interactive uniform circular motion simulator for university physics. Visualizes velocity, centripetal acceleration, and radius vectors in real time. Built with React + Canvas 2D.
https://github.com/pol-cova/ucm
canvas math physics react science simulator
Last synced: about 23 hours ago
JSON representation
Interactive uniform circular motion simulator for university physics. Visualizes velocity, centripetal acceleration, and radius vectors in real time. Built with React + Canvas 2D.
- Host: GitHub
- URL: https://github.com/pol-cova/ucm
- Owner: pol-cova
- Created: 2026-03-26T03:58:14.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-03-26T04:18:12.000Z (3 months ago)
- Last Synced: 2026-03-27T00:51:46.347Z (3 months ago)
- Topics: canvas, math, physics, react, science, simulator
- Language: JavaScript
- Homepage: https://mcu.paulcontre.com
- Size: 11.5 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UCM Simulator
Interactive uniform circular motion simulator for university physics.
**Live:** [mcu.paulcontre.com](https://mcu.paulcontre.com)
## What it does
Simulates a particle in uniform circular motion with real-time vector visualization:
- **r** (green) — radius / position vector
- **v** (blue) — tangential velocity
- **aᶜ** (red) — centripetal acceleration
Adjust radius, speed, and mass via sliders. Release the constraint to watch the particle fly off tangentially (Newton's 1st law).
## Physics
- RK4 integrator with centripetal constraint applied each tick
- Fixed 1/60 s physics step, decoupled from render
- Derived quantities: ω = v/r, T = 2π/ω, aᶜ = v²/r, Fᶜ = m·aᶜ
## Stack
React · Canvas 2D · Chart.js · Vite
## Run locally
```bash
npm install
npm run dev
```
---
Created by [paulcontreras](https://github.com/pol-cova) · [@paulcontr_](https://instagram.com/paulcontr_)