diff --git a/django/games/routine.py b/django/games/routine.py index a4a30c0..deb8984 100644 --- a/django/games/routine.py +++ b/django/games/routine.py @@ -135,7 +135,7 @@ def get_first_impact(segments: list[Segment], ball: Ball): inc_x: float = (-1) * get_sign(cos) * (config.STROKE_THICKNESS + config.BALL_SIZE / 2) inc_y: float = get_sign(sin) * (config.STROKE_THICKNESS + config.BALL_SIZE / 2) - ball_segment: Segment = Segment(ball.position.location, Point(ball.position.location.x + inc_x, ball.position.location.y + inc_y)) + ball_segment: Segment = Segment(ball.position.location, Point(ball.position.location.x + cos, ball.position.location.y - sin)) data: dict | None = None