Skip to content

Commit

Permalink
correctly setup default world configuration before startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Dec 4, 2024
1 parent 6d7b84b commit a341da2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/plugin/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ where
app.insert_resource(self.default_world_setup.clone());
}

// FIXME: Those are great candidates for RequiredComponents with bevy 0.15
app.add_systems(
self.schedule,
(
Expand All @@ -236,7 +237,15 @@ where
)
.before(PhysicsSet::SyncBackend),
);
app.add_systems(PreStartup, insert_default_world);
app.add_systems(
PreStartup,
(
insert_default_world,
setup_rapier_configuration,
setup_rapier_simulation_to_render_time,
)
.chain(),
);

// Add each set as necessary
if self.default_system_setup {
Expand Down

0 comments on commit a341da2

Please sign in to comment.