A small, interactive double pendulum demo that separates a high-performance physics engine (written in Rust and compiled to WASM) from a responsive web UI (React + TypeScript), and PixiJS for high-performance canvas rendering.
Live demo · pendulum.notaroomba.dev
- High-performance physics core implemented in Rust and compiled to WebAssembly for accurate, real-time simulation
- Smooth, interactive Web UI built with React, PixiJS, and TypeScript
- Prebuilt WASM
physics/pkgso you can run the demo without a local Rust toolchain - Adjustable parameters (masses, lengths, gravity, initial angles) and simulation controls (start/stop/reset)
- Different implementations (RK4, Hamltonian, etc...)
Open https://pendulum.notaroomba.dev in a browser.
- Presets and exportable snapshots for sharing interesting trajectories
- Plots and graphs for the simulation
- Game-ify it?
- Rust and wasm-bindgen for the physics engine
- React for the UI, TailwindCSS for the styling, and PixiJS for rendering
- Inspiration and examples from many open-source double pendulum visualizations
MIT
notaroomba.dev · GitHub GitHub @NotARoomba · ·