Added custom functions to loop

This commit is contained in:
skyeshroom
2021-08-11 19:20:26 -07:00
parent 3517bf0ed0
commit 61becd7b57
2 changed files with 49 additions and 9 deletions

View File

@@ -1,9 +1,16 @@
use hypoloop::Simulation;
// look into using closures for this
fn main() {
// create sim
// create sim and configure it
let mut sim = Simulation::new();
sim.set_update_function(test);
//sim.set_realtime(false);
// run sim
sim.run();
}
fn test() {
println!("Test");
}