Material Overlap?

How can I get an event for overlapping a material?

I’m trying to make a buoyancy system for objects but the material I’m working with has large waves which I want the object to be able to float on.