Expand description
§Motion, Bare Metal physics engine
Motion is a bare metal physics engine which is created to be easy to use.
§Get started!
you can first add the package with
cargo add motion
With this you already have record installed in your project, you can start with a simple event loop
use std::{thread, time::Duration};
use motion::event_loop::EventLoopBuilder;
fn sleep(duration: Duration) {
thread::sleep(duration);
}
fn main() {
let el = EventLoopBuilder::new().fps(1).build();
el.start(|_config| println!("Hello! in the event loop"), sleep);
}
https://github.com/Juanperias/motion/blob/main/examples/event_loop_example/src/main.rs
More examples in https://github.com/Juanperias/motion/tree/main/examples