Compare commits
2 commits
a663efd150
...
76758fa2a8
Author | SHA1 | Date | |
---|---|---|---|
76758fa2a8 | |||
d10985909b |
1 changed files with 2 additions and 7 deletions
|
@ -103,13 +103,8 @@ 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.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();
|
||||
fn update(_app: &App, model: &mut Model, _update: Update) {
|
||||
model.engine.step();
|
||||
}
|
||||
|
||||
// Draw the state of your `Model` into the given `Frame` here.
|
||||
|
|
Loading…
Reference in a new issue