Compare commits
2 Commits
a663efd150
...
76758fa2a8
Author | SHA1 | Date |
---|---|---|
Zynh0722 | 76758fa2a8 | |
Zynh0722 | d10985909b |
|
@ -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`.
|
// Update the state of your application here. By default, this gets called right before `view`.
|
||||||
fn update(_app: &App, _model: &mut Model, _update: Update) {
|
fn update(_app: &App, model: &mut Model, _update: Update) {
|
||||||
// _model.particles.iter_mut().for_each(|particle| {
|
model.engine.step();
|
||||||
// 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.
|
// Draw the state of your `Model` into the given `Frame` here.
|
||||||
|
|
Loading…
Reference in New Issue