For example, when a perfectly cylindrical hull rolls, the centre of buoyancy stays on the axis of the cylinder at the same depth. However, if the centre of mass is below the axis, it will move to one side and rise, creating potential energy. Conversely if a hull having a perfectly rectangular cross section has its centre of mass at the water line, the centre of mass stays at the same height, but the centre of buoyancy goes down as the hull heels, again storing potential energy.