A ship's compass on a sailboat is often mounted in a binnacle in the cockpit just in front of the wheel. The magnetic part of the compass, including the compass card, floats in oil inside a transparent sphere of glass or plastic so it stays level regardless of how much the boat is heeled.