2021-08-11 14:21:12 -06:00
|
|
|
use hypoloop::Simulation;
|
|
|
|
|
2021-08-11 20:20:26 -06:00
|
|
|
// look into using closures for this
|
2021-08-11 13:52:44 -06:00
|
|
|
fn main() {
|
2021-08-11 20:20:26 -06:00
|
|
|
// create sim and configure it
|
2021-08-11 14:21:12 -06:00
|
|
|
let mut sim = Simulation::new();
|
2021-08-11 20:20:26 -06:00
|
|
|
sim.set_update_function(test);
|
|
|
|
//sim.set_realtime(false);
|
2021-08-11 14:21:12 -06:00
|
|
|
|
|
|
|
// run sim
|
|
|
|
sim.run();
|
2021-08-11 13:52:44 -06:00
|
|
|
}
|
2021-08-11 20:20:26 -06:00
|
|
|
|
|
|
|
fn test() {
|
|
|
|
println!("Test");
|
|
|
|
}
|