diff --git a/src/render/mod.rs b/src/render/mod.rs index 87c33868..7bc01880 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -1,5 +1,6 @@ use crate::plugin::RapierContext; use bevy::prelude::*; +use bevy::transform::TransformSystem; use rapier::math::{Point, Real}; use rapier::pipeline::{DebugRenderBackend, DebugRenderObject, DebugRenderPipeline}; pub use rapier::pipeline::{DebugRenderMode, DebugRenderStyle}; @@ -86,7 +87,10 @@ impl Plugin for RapierDebugRenderPlugin { enabled: self.enabled, pipeline: DebugRenderPipeline::new(self.style, self.mode), }) - .add_systems(PostUpdate, debug_render_scene); + .add_systems( + PostUpdate, + debug_render_scene.after(TransformSystem::TransformPropagate), + ); } }