diff --git a/src/Nazara/Physics3D/Systems/Physics3DSystem.cpp b/src/Nazara/Physics3D/Systems/Physics3DSystem.cpp index f92bc1dee..f12504c29 100644 --- a/src/Nazara/Physics3D/Systems/Physics3DSystem.cpp +++ b/src/Nazara/Physics3D/Systems/Physics3DSystem.cpp @@ -23,9 +23,12 @@ namespace Nz m_physWorld.Step(elapsedTime); // Replicate rigid body position to their node components - auto velView = registry.view(); - for (auto [entity, nodeComponent, rigidBodyComponent] : velView.each()) + auto view = registry.view(); + for (auto [entity, nodeComponent, rigidBodyComponent] : view.each()) { + if (rigidBodyComponent.IsSleeping()) + continue; + nodeComponent.SetPosition(rigidBodyComponent.GetPosition(), CoordSys::Global); nodeComponent.SetRotation(rigidBodyComponent.GetRotation(), CoordSys::Global); }