Compare commits

..

No commits in common. "76758fa2a8ede06d4a131e9a98b6db4d35e1ba59" and "a663efd1508a673d31e81381ecbfaca7d5766394" have entirely different histories.

1 changed files with 7 additions and 2 deletions

View File

@ -103,8 +103,13 @@ fn event(app: &App, model: &mut Model, event: WindowEvent) {
}
// Update the state of your application here. By default, this gets called right before `view`.
fn update(_app: &App, model: &mut Model, _update: Update) {
model.engine.step();
fn update(_app: &App, _model: &mut Model, _update: Update) {
// _model.particles.iter_mut().for_each(|particle| {
// let offset = (_app.time + particle.time_offset).sin() * 100.0;
// particle.pos.x = particle.start_pos.x + offset
// });
_model.engine.step();
}
// Draw the state of your `Model` into the given `Frame` here.