diff --git a/engine/src/cubos/engine/physics/plugin.cpp b/engine/src/cubos/engine/physics/plugin.cpp index 60113baf9..090f59bf6 100644 --- a/engine/src/cubos/engine/physics/plugin.cpp +++ b/engine/src/cubos/engine/physics/plugin.cpp @@ -56,8 +56,6 @@ static bool simulatePhysicsStep(PhysicsAccumulator& accumulator, const FixedDelt void cubos::engine::physicsPlugin(Cubos& cubos) { - cubos.addPlugin(gravityPlugin); - cubos.addResource(); cubos.addResource(); cubos.addResource(); @@ -70,6 +68,8 @@ void cubos::engine::physicsPlugin(Cubos& cubos) cubos.addComponent(); cubos.addComponent(); + cubos.addPlugin(gravityPlugin); + // executed every frame cubos.system("increase fixed-step accumulator") .tagged("cubos.physics.simulation.prepare")