diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-07 15:45:31 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-07 15:45:31 +0100 |
commit | 2b3f4ae6abcd88d89b0f6d0db8023b26ac3e9150 (patch) | |
tree | f9f8c9b1e8a3c76698257ff247ec28181899e1d4 /src | |
parent | fe8f985d2c7ea672a5f886d7d0df064f26bd2cb4 (diff) |
restore file
Diffstat (limited to 'src')
-rw-r--r-- | src/crepe/system/CollisionSystem.cpp | 1 |
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; |