The USS Texas in WW2 partially sunk itself (flooded watertight compartments, if I remember correctly) to gain a higher elevation to shoot fortified bunkers farther inland than it could reach otherwise. I learned this on Reddit and never forgot it, oddly enough.