From a341da2fed78a91cf8771d09d643be85c6d3a5cb Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Tue, 3 Dec 2024 18:10:28 +0100 Subject: [PATCH] correctly setup default world configuration before startup --- src/plugin/plugin.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/plugin/plugin.rs b/src/plugin/plugin.rs index 33fc4287..48effac6 100644 --- a/src/plugin/plugin.rs +++ b/src/plugin/plugin.rs @@ -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, ( @@ -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 {