Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly setup default world configuration before startup #603

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading