Skip to content

Commit

Permalink
fix(collisions): subplugin should be private
Browse files Browse the repository at this point in the history
  • Loading branch information
luishfonseca committed Oct 6, 2023
1 parent fd99970 commit 30edc30
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/// @brief Resource @ref cubos::engine::Candidates.
/// @ingroup broad-phase-collisions-plugin

// FIXME: This should be private, but it's used in the sample.

#pragma once

#include <unordered_map>
Expand Down
7 changes: 5 additions & 2 deletions engine/src/cubos/engine/collisions/broad_phase/plugin.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@

#include "plugin.hpp"

#include <cubos/engine/collisions/broad_phase/candidates.hpp>
#include <cubos/engine/collisions/broad_phase/plugin.hpp>
#include <cubos/engine/collisions/broad_phase/sweep_and_prune.hpp>
#include <cubos/engine/collisions/collider.hpp>
#include <cubos/engine/collisions/shapes/box.hpp>
#include <cubos/engine/collisions/shapes/capsule.hpp>
#include <cubos/engine/transform/local_to_world.hpp>

#include "sweep_and_prune.hpp"

using cubos::core::ecs::OptRead;
using cubos::core::ecs::Query;
using cubos::core::ecs::Read;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <algorithm>

#include <cubos/engine/collisions/broad_phase/sweep_and_prune.hpp>
#include "sweep_and_prune.hpp"

using cubos::core::ecs::Entity;
using namespace cubos::engine;
Expand Down
3 changes: 2 additions & 1 deletion engine/src/cubos/engine/collisions/plugin.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "broad_phase/plugin.hpp"

#include <cubos/core/ecs/system/query.hpp>

#include <cubos/engine/collisions/broad_phase/plugin.hpp>
#include <cubos/engine/collisions/collider.hpp>
#include <cubos/engine/collisions/plugin.hpp>
#include <cubos/engine/collisions/shapes/box.hpp>
Expand Down

0 comments on commit 30edc30

Please sign in to comment.