aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-12 15:42:03 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-12 15:42:03 +0100
commit5b1c45c2c3bd695ee8d8b5baa4b1988e24596559 (patch)
treec7bf58760c92caab4d233e9c87f1ad546e7d4488 /src/crepe/system
parentafd81007153f05c8f8b42bcf08a8cdf8ce13a98c (diff)
restore file
Diffstat (limited to 'src/crepe/system')
-rw-r--r--src/crepe/system/CollisionSystem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crepe/system/CollisionSystem.cpp b/src/crepe/system/CollisionSystem.cpp
index 0483693..952ed0a 100644
--- a/src/crepe/system/CollisionSystem.cpp
+++ b/src/crepe/system/CollisionSystem.cpp
@@ -290,6 +290,7 @@ vec2 CollisionSystem::get_circle_box_resolution(const CircleCollider & circle_co
// Compute penetration depth
float penetration_depth = circle_collider.radius - distance;
+
// Compute the resolution vector
vec2 resolution = collision_normal * penetration_depth;