Physics simulation with 10K bouncing balls in your browser.
This uses Rust and WebAssembly for a high-performance browser-based simulation. It integrates the Bevy engine and Rapier physics library to realistically simulate 10,000 balls colliding and bouncing in a box.
-
Efficient Physics Simulation: The core feature must be the efficient handling and smooth performance.
-
WebAssembly Optimization: Optimizing the Rust code to run efficiently as WebAssembly.
-
Responsiveness and Scalability: The simulation scales correctly across different devices and resolutions, offering a consistent experience.
-
Interactive Controls: Controls to change the gravity, apply forces to the balls, or alter conditions like the boundary walls' elasticity.
-
Dynamic User Interface: Enables users to easily understand and manipulate the simulation settings.
-
Real-Time Performance Monitoring: Display key performance metrics such as FPS and simulation step time on the screen.
-
Shareable Setups: Enable users to create, save, and share their own unique simulation settings with others.
-
Visual Effects: Enhanced visual effects options, like slow motion and color shifts based on velocity or collision intensity.
Run simulation within browser.
Responsive website and interactive controls.
Real-time performance monitoring.
-
Tech stack:
- Rust
- Bevy with rapier2d
- WebAssembly