Demo a B-imulse, because it behaves more symmetrically

This commit is contained in:
2020-07-25 00:27:58 -07:00
parent 1d9aa738ac
commit 56cc5980dd

View File

@@ -9,9 +9,9 @@ fn main() {
loop {
step += 1;
let imp = 50.0 * ((step as f64)*0.05).sin() as f32;
state.impulse_ex(50, 50, imp);
state.impulse_ey(50, 50, imp);
//state.impulse_bz(50, 50, imp / 3e8f32);
// state.impulse_ex(50, 50, imp);
// state.impulse_ey(50, 50, imp);
state.impulse_bz(50, 50, imp / 3e8f32);
Renderer.render(&state);
state.step();
thread::sleep(time::Duration::from_millis(33));