Skip to content

Commit

Permalink
fix(platformer): remove unnecessary localToWorld
Browse files Browse the repository at this point in the history
  • Loading branch information
luishfonseca committed Nov 14, 2023
1 parent 450637e commit 1d8f0de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions platformer/src/collider_gizmos/plugin.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "plugin.hpp"

#include <cubos/engine/collisions/collider.hpp>
#include <cubos/engine/transform/local_to_world.hpp>
#include <cubos/engine/gizmos/plugin.hpp>

using cubos::core::ecs::Query;
Expand All @@ -10,9 +9,9 @@ using cubos::core::ecs::Write;

using namespace cubos::engine;

static void gizmosSystem(Write<Gizmos> gizmos, Query<Read<LocalToWorld>, Read<Collider>> colliders)
static void gizmosSystem(Write<Gizmos> gizmos, Query<Read<Collider>> colliders)
{
for (auto [entity, transform, collider] : colliders)
for (auto [entity, collider] : colliders)
{
gizmos->drawWireBox("collider", collider->worldAABB.diag[0], collider->worldAABB.diag[1]);
}
Expand Down

0 comments on commit 1d8f0de

Please sign in to comment.