From 3761377b616c174ecc5ff0d45f7af1ab13dcc640 Mon Sep 17 00:00:00 2001 From: romanschenk37 <84532681+romanschenk37@users.noreply.github.com> Date: Fri, 25 Mar 2022 19:14:01 +0100 Subject: [PATCH] Code Cleanup --- .../ch/zhaw/pm2/racetrack/strategy/PathFinderMoveStrategy.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/ch/zhaw/pm2/racetrack/strategy/PathFinderMoveStrategy.java b/src/main/java/ch/zhaw/pm2/racetrack/strategy/PathFinderMoveStrategy.java index 1fc056f..b9feee0 100644 --- a/src/main/java/ch/zhaw/pm2/racetrack/strategy/PathFinderMoveStrategy.java +++ b/src/main/java/ch/zhaw/pm2/racetrack/strategy/PathFinderMoveStrategy.java @@ -209,8 +209,6 @@ public class PathFinderMoveStrategy implements MoveStrategy{ PositionVector newVelocity = new PositionVector(currentVelocity.getX() + direction.vector.getX(), currentVelocity.getY() + direction.vector.getY()); PositionVector currentPosition = track.getCarPos(carIndex); PositionVector newPosition = new PositionVector(currentPosition.getX() + newVelocity.getX(), currentPosition.getY() + newVelocity.getY()); - System.out.println("currentVelocity:" + currentVelocity.getX()+ ","+ currentVelocity.getY()); - System.out.println("newVelocity:" + newVelocity.getX()+ ","+ newVelocity.getY()); for(PositionVector point : track.calculatePointsOnPath(currentPosition, newPosition)){ if(track.willCrashAtPosition(carIndex, point)){ createMoveList();