aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/CollisionSystem.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-11-14 18:49:17 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-11-14 18:49:17 +0100
commit15c4cf103c4da7808b7173581ead22ab7190632d (patch)
tree85d1a3a78325661e41b2e50607e735982756fbb4 /src/crepe/system/CollisionSystem.cpp
parent5ee56897e28dea05853e463e061d7f21cb9771a3 (diff)
updated test
Diffstat (limited to 'src/crepe/system/CollisionSystem.cpp')
-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
+}