public void render(Obstacle obstacle) { Vector adjustedPosition = obstacle.position().add(viewPoint); graphics.drawOval( (int) (adjustedPosition.x() - obstacle.boundingRadius()), (int) (adjustedPosition.y() - obstacle.boundingRadius()), (int) (obstacle.boundingRadius() * 2), (int) (obstacle.boundingRadius() * 2)); }