diff --git a/raycastlib.h b/raycastlib.h index b1f6993..f4c7c3a 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -1071,11 +1071,8 @@ void moveCameraWithCollision(Camera *camera, Vector2D planeOffset, if (xyCollides) { - if (wrap(cornerNew.x,UNITS_PER_SQUARE) > - wrap(cornerNew.y,UNITS_PER_SQUARE)) - yCollides = true; - else - xCollides = true; + // normally should slide, but let's KISS + cornerNew = corner; } } }