aboutsummaryrefslogtreecommitdiff
path: root/src/crepe
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-18 23:54:29 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-18 23:54:29 +0100
commitbe36b204c6dc597f74541e926f2f2821ab553228 (patch)
tree4b1f8356580ecca60f8741a0f9236e967c6398fa /src/crepe
parent982e12df210b8eb3daa66ebe6a71dd9e92276cec (diff)
testing dynamic
Diffstat (limited to 'src/crepe')
-rw-r--r--src/crepe/system/CollisionSystem.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/crepe/system/CollisionSystem.cpp b/src/crepe/system/CollisionSystem.cpp
index a9a0523..75e914d 100644
--- a/src/crepe/system/CollisionSystem.cpp
+++ b/src/crepe/system/CollisionSystem.cpp
@@ -72,12 +72,8 @@ void CollisionSystem::update() {
std::vector<std::pair<CollisionInternal, CollisionInternal>> collided
= this->gather_collisions(all_colliders);
- // For both objects call the collision handler
+ // For the object convert the info and call the collision handler if needed
for (auto & collision_pair : collided) {
- // Determine type
- //CollisionInternalType type = this->get_collider_type(collision_pair.first.collider, collision_pair.second.collider);
- // Determine resolution
- //std::pair<vec2, CollisionSystem::Direction> resolution_data = this->get_collision_resolution(collision_pair.first, collision_pair.second, type);
// Convert internal struct to external struct
CollisionInfo info = this->get_collision_info(collision_pair.first, collision_pair.second);
// Determine if and/or what collison handler is needed.