aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/system')
-rw-r--r--src/crepe/system/CollisionSystem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/system/CollisionSystem.cpp b/src/crepe/system/CollisionSystem.cpp
index a6cf891..0d056a5 100644
--- a/src/crepe/system/CollisionSystem.cpp
+++ b/src/crepe/system/CollisionSystem.cpp
@@ -23,6 +23,7 @@ void CollisionSystem::update() {
std::vector<std::reference_wrapper<BoxCollider>> boxcolliders = mgr.get_components_by_type<BoxCollider>();
std::vector<std::reference_wrapper<CircleCollider>> circlecolliders = mgr.get_components_by_type<CircleCollider>();
std::vector<std::pair<int, int>> collided = check_collisions(boxcolliders,circlecolliders);
+ std::cout << "DEBUG INFO" << std::endl;
for (const auto& collision : collided) {
std::cout << "Object " << collision.first << " collided with Object " << collision.second << std::endl;
}
@@ -206,4 +207,4 @@ Vector2 CollisionSystem::current_position(const Collider& collider, const Transf
// Final positions considering scaling and rotation
return(transform.position + Vector2(rotated_total_offset_x1, rotated_total_offset_y1));
-} \ No newline at end of file
+}