public static bool collides(SpriteCollider a, SpriteCollider b) { return new Collision2D(a,b).collision; }
public bool collidesWith(SpriteCollider other) { if (pixelCollision) { return(Collision2D.collides(this, other)); } return(getBounds().overlaps(other.getBounds())); }