Box box = (Box) boxBody.getShape();
Circle circle = (Circle) circleBody.getShape();
Vector2f[] pts = box.getPoints(boxBody.getPosition(), boxBody.getRotation());
Line[] lines = new Line[4];
lines[0] = new Line(pts[0],pts[1]);
lines[1] = new Line(pts[1],pts[2]);
lines[2] = new Line(pts[2],pts[3]);
lines[3] = new Line(pts[3],pts[0]);
float r2 = circle.getRadius() * circle.getRadius();
int closest = -1;
float closestDistance = Float.MAX_VALUE;