rectangles point in direction of velocity with atan function