physics2d-rs
Yet another 2D physics engine, but with Iron power.
physics2d-rs is an educational project accompanying my 2D physics article series and does not intend to compete with the likes of nphysics, but can still be used as part of 2D games and simulations post the initial release.
Features
For the moment, brute-force collision detection and resolution (with friction) between bodies is only supported. To check the project's current progress, take a look at the available examples. New examples are generally created for every major feature addition.
Examples
The examples use the sfml
crate, and hence are dependent on both the SFML and CSFML development libraries. macOS and GNU/Linux users should have both packages available with their respective package managers. Windows users should follow these instructions to set up the sfml
crate.
To run an example, use the Cargo run
command:
cargo run --example=EXAMPLE-NAME