physics_sandbox
A small, dependency-free rigid-body physics sandbox in Rust. Pluggable integrators, environment forces (gravity, wind, air density), simple sphere–sphere collisions, and a tiny event bus for collisions and threshold triggers. Optional retro ASCII terminal visualization behind the viz feature.
Add it
[]
= "0.1"
# with the terminal visualization helpers:
= { = "0.1", = ["viz"] }
Quick start
use ;
let env = new;
let mut world = new;
let id = world.add_body;
for _ in 0..10_000
Examples
Features
viz—AsciiScope+Markerfor animating bodies in the terminal viacrossterm.
License
Dual-licensed under either of:
- MIT license (LICENSE-MIT)
- Apache License, Version 2.0 (LICENSE-APACHE)
at your option.