Help with Boat script

So I’m making a raft type of game and there’s 1 system that I’ve been trying to implement but just can’t.
I’m trying to make the boat Orientate depending on how the waves underneath. Like if there’s a huge wave it will begin to point upwards simulating its sailing over the wave.

I’ve been trying to do this for a while now but just deleted my scripts cause I can’t get it to work.

I have tried to use a part to raycast but could’nt get that to work either.

If you’re using the Terrain water then this post might help: Sampling Terrain Water Height at Any Position - Resources / Community Resources.

1 Like