How to make waves that are both visible and move the player?

Godot Version

4.5.1.stable

Question

I’m making a fishing game and I want some funky waves that will move the player (just up and down) while also being visible, maybe a plane and shader or something. I am a bit of a godot beginner.

Edit: I also have no idea how to make moving waves in the first place lol

Use the same trigonometric function(s) in the shader to displace the water plane vertices and in the script to displace the player.

what does that mean?

Maybe you shouldn’t attempt this just yet if you don’t know what it means.

Or find a tutorial that tackles it, like this one: