Fix physics_2d example

This commit is contained in:
Nikita Lisitsa 2021-02-23 20:09:14 +03:00
parent cec776df8a
commit 95cc39421d

View file

@ -187,7 +187,7 @@ struct physics_2d_app
// physics.add_object(ball_group, ball_shape, material, {simulation_box.corner(0.5f, 0.9f), 0.f}, {}); // physics.add_object(ball_group, ball_shape, material, {simulation_box.corner(0.5f, 0.9f), 0.f}, {});
// }); // });
loop.dispatch_at(async::executor::clock::now() + std::chrono::seconds{1}, [this]{ loop.dispatch_at(async::clock::now() + std::chrono::seconds{1}, [this]{
physics.explode(simulation_box.corner(0.5f, -0.2f), 1000.f, 100.f); physics.explode(simulation_box.corner(0.5f, -0.2f), 1000.f, 100.f);
}); });