Set gravity to 0.

This commit is contained in:
Nolan Darilek 2025-01-03 17:23:26 -05:00
parent 380506b75c
commit c2d6a1f0e8

View File

@ -591,6 +591,7 @@ impl Plugin for CorePlugin {
app.insert_resource(config) app.insert_resource(config)
.register_type::<CardinalDirection>() .register_type::<CardinalDirection>()
.add_plugins(PhysicsPlugins::default().with_length_unit(config.pixels_per_unit as f32)) .add_plugins(PhysicsPlugins::default().with_length_unit(config.pixels_per_unit as f32))
.insert_resource(Gravity(Vec2::ZERO))
.add_systems(Startup, setup) .add_systems(Startup, setup)
.add_systems(Update, sync_config); .add_systems(Update, sync_config);
} }