/** * Check if there is overlap of rectangles. * * @param other rectangle of other object. * @return true if overlap, else false. */ public final boolean collidesWith(GameObject other) { return getBody().overlaps(other.getBody()); }
/** * Check if there is overlap of rectangles. * * @param other rectangle of other object. * @return true if overlap, else false. */ public final boolean collidesWith(GameObject other) { return getBody().overlaps(other.getBody()); }