How to stop a plane from clipping through objects

For my project I have a water plane and a boat. Whenever the boat is slightly submerged, the water plane clips through. How should I start with this? Any pointers would be helpful.

https://simonschreibt.de/gat/black-flag-waterplane/

Thanks for the resource, hopefully I can get it working.