public bool TileIntersectsPlayer(Rectangle player, Rectangle block, CharacterBase.MoveDirection direction, out Vector2 depth)
 {
     depth = direction == CharacterBase.MoveDirection.Vertical ? new Vector2(0, player.GetVerticalIntersectionDepth(block)) : new Vector2(player.GetHorizontalIntersectionDepth(block), 0);
     return depth.Y != 0 || depth.X != 0;
 }