experimentally, use variable timing for physics calculations

This commit is contained in:
yuni 2024-11-20 00:03:35 +01:00
parent 93ba829e59
commit c3343b1667

View file

@ -51,6 +51,7 @@ impl Plugin for WorldPlugin {
);
app.add_plugins(PhysicsPlugins::default());
//app.add_plugins(PhysicsDebugPlugin::default());
app.insert_resource(Time::new_with(Physics::variable(1.0 / 30.0)));
app.insert_resource(Gravity(DVec3::splat(0.0)));
app.insert_resource(ActiveAsteroids(HashMap::new()));
app.add_event::<RespawnEvent>();