Visualization for basic simulation of a perfectly elastic collision between balls https://demo.pages.djmil.dev/egui-circles
Go to file
2024-08-30 22:41:51 +02:00
.cargo autoscale 2024-08-30 20:15:52 +02:00
assets autoscale 2024-08-30 20:15:52 +02:00
src autoscale 2024-08-30 20:15:52 +02:00
wasm32 publish wasm32 target 2024-08-30 22:06:23 +02:00
.gitignore autoscale 2024-08-30 20:15:52 +02:00
Cargo.lock autoscale 2024-08-30 20:15:52 +02:00
Cargo.toml autoscale 2024-08-30 20:15:52 +02:00
index.html autoscale 2024-08-30 20:15:52 +02:00
LICENSE Initial commit 2024-04-28 21:51:37 +02:00
README.md add link to the web demo 2024-08-30 22:41:51 +02:00

Immediate Mode GUI app with naive visualization for elastic balls collisions. Live demo.

Build & run

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # install rust
cargo run --package=egui_circles                               # build & run

Acknowledgments

ImGui

Detailed information on how to use egui rust library can found here.

Math

A simple explanation of 2D vector math, silently working behind the scene of the collisions simulation.