After using the ocean modifier with an object (in displace mode), the object is floating in space. How can I make ocean modifier to deform it, but don't move it?
It is deforming it, but the result is probably not matching the scale of your object. Try to reduce the Size parameter and maybe also the Scale parameter of the Ocean modifier.
Apply SCALE to the object (so that x, y and z scale are all 1).