Going about a wave impacting a boats angle

Hello! I’ve been stuck on how to approach changing a boats angle based on the height of a wave.

I have some what of an approach to detecting if its submerged underwater (which is by 2 attachments and raycasting down a certain amount and if it touches anything then we can conclude we need to angle it up/down)

A solution I thought of but wouldn’t provide the most accurate results is just apply force to my boat until its not detecting that its submerged via Raycast then applying a BodyForce / VectorForce

So I’m wondering how shall I go about doing this as I dont have experience working with some of the high level math concepts I’ve encountered on such articles/ videos.