Code Cleanup
This commit is contained in:
parent
53b2dabc59
commit
3761377b61
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue