Density
Even at the same volume, different mass means different density. Density is mass divided by volume and stays constant for a given material no matter the amount. Objects denser than water sink and less dense ones float—that is why ice floats. Move the mass and volume sliders to compute density and see whether the object floats or sinks.