A simple two-dimensional Physics Engine written completely in Rust which supports
- Elastic and Inelastic collisons.
- Mouse impulse support.
- Linear and rotational mechanics.
- gravity and friction simulation.
0.0 <= Coeffecient of restitiution <= 1.0
rust version 1.47.0 required
Switch to dev branch for latest code
- Clone the repo
- cd Rphysics/
- cargo run [gravity state] [no.of circles] [coeffecient of restitiution]
Example
- cargo run off 10 1.0