Why Do Some Objects Float While Others Sink