spelling: the

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2023-01-17 23:26:01 -05:00
parent f16ee0abb7
commit 0dbbc88291
8 changed files with 8 additions and 8 deletions

View File

@@ -519,7 +519,7 @@ Collision CheckCollision(BallObject &one, GameObject &two) // AABB - Circle coll
// get difference vector between both centers
glm::vec2 difference = center - aabb_center;
glm::vec2 clamped = glm::clamp(difference, -aabb_half_extents, aabb_half_extents);
// now that we know the the clamped values, add this to AABB_center and we get the value of box closest to circle
// now that we know the clamped values, add this to AABB_center and we get the value of box closest to circle
glm::vec2 closest = aabb_center + clamped;
// now retrieve vector between center circle and closest point AABB and check if length < radius
difference = closest - center;