Skip to content
Notifications You must be signed in to change notification settings

notaroomba/pendulumania

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4e8ae92 · · Nov 5, 2025

History

21 Commits
Nov 5, 2025
Nov 4, 2025
Nov 5, 2025
Nov 3, 2025
Nov 4, 2025
Nov 4, 2025
Nov 4, 2025
Nov 4, 2025
Nov 4, 2025
Nov 4, 2025
Nov 4, 2025
Nov 4, 2025
Nov 4, 2025
Nov 4, 2025
Nov 4, 2025
Nov 4, 2025

Repository files navigation


Pendulumania
Pendulumania

Interactive n-pendulum simulation with a Rust physics engine compiled to WebAssembly

Rust WASM React PixiJS

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

Screenshot

Key features

  • 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/pkg so 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...)

Preview

Open https://pendulum.notaroomba.dev in a browser.

TODO

  • Presets and exportable snapshots for sharing interesting trajectories
  • Plots and graphs for the simulation
  • Game-ify it?

Credits

  • 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

License

MIT


notaroomba.dev  ·  GitHub GitHub @NotARoomba  · · 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published