Skip to content
Browse files

minor change

  • Loading branch information...
1 parent 0094c25 commit a334b1208c60e335fe376465fe6337466a0e956c @zaphire committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Core/Colliders/CircleCollider.cpp
View
2 Core/Colliders/CircleCollider.cpp
@@ -40,7 +40,7 @@ namespace Monocle
Vector2 closest = (t * dir) + start;
Vector2 d = (ePos + offset) - closest;
- bool didCollide = d.GetSquaredMagnitude() <= (radius + lineRadius) * (radius + lineRadius);
+ bool didCollide = (d.GetSquaredMagnitude() <= pow(radius + lineRadius, 2));
if (didCollide && collisionData)
{

0 comments on commit a334b12

Please sign in to comment.
Something went wrong with that request. Please try again.