diff --git a/engine/include/cubos/engine/collisions/shapes/box.hpp b/engine/include/cubos/engine/collisions/shapes/box.hpp index 82f4c1b92f..0b73787a47 100644 --- a/engine/include/cubos/engine/collisions/shapes/box.hpp +++ b/engine/include/cubos/engine/collisions/shapes/box.hpp @@ -19,6 +19,6 @@ namespace cubos::engine cubos::core::geom::Box box; ///< Box shape. - bool changed = true; + bool changed{true}; }; } // namespace cubos::engine diff --git a/engine/samples/complex_physics/assets/scenes/red_cube.cubos b/engine/samples/complex_physics/assets/scenes/red_cube.cubos index 7f430ef17f..bfe9ec1442 100644 --- a/engine/samples/complex_physics/assets/scenes/red_cube.cubos +++ b/engine/samples/complex_physics/assets/scenes/red_cube.cubos @@ -2,17 +2,14 @@ "entities": { "cube": { "cubos::engine::AccumulatedCorrection": { - "x": 0.0, - "y": 0.0, - "z": 0.0 + "x": 0.0, + "y": 0.0, + "z": 0.0 }, "cubos::engine::BoxCollisionShape": { - "box" : { - "x": 0.5, - "y": 0.5, - "z": 0.5 - }, - "changed" : true + "x": 0.5, + "y": 0.5, + "z": 0.5 }, "cubos::engine::Collider": { "a": { diff --git a/engine/samples/complex_physics/assets/scenes/white_cube.cubos b/engine/samples/complex_physics/assets/scenes/white_cube.cubos index d7df751831..6dc076ca27 100644 --- a/engine/samples/complex_physics/assets/scenes/white_cube.cubos +++ b/engine/samples/complex_physics/assets/scenes/white_cube.cubos @@ -7,12 +7,9 @@ "z": 0.0 }, "cubos::engine::BoxCollisionShape": { - "box" : { - "x": 0.5, - "y": 0.5, - "z": 0.5 - }, - "changed" : true + "x": 0.5, + "y": 0.5, + "z": 0.5 }, "cubos::engine::Collider": { "a": { diff --git a/engine/src/collisions/interface/shapes/box.cpp b/engine/src/collisions/interface/shapes/box.cpp index 3f4e957076..c02ddb7cee 100644 --- a/engine/src/collisions/interface/shapes/box.cpp +++ b/engine/src/collisions/interface/shapes/box.cpp @@ -7,6 +7,5 @@ CUBOS_REFLECT_IMPL(cubos::engine::BoxCollisionShape) { return core::ecs::TypeBuilder("cubos::engine::BoxCollisionShape") .withField("box", &BoxCollisionShape::box) - .withField("changed", &BoxCollisionShape::changed) .build(); }