Sampling Terrain Water Height at Any Position

I reverse engineered roblox waves to find an algorithm that closely matches them, and I put the exact code to sample wave heights at any position above. That is all I meant to share here. If you want to use that algorithm to make a boat, it’s on you. However, if you scrolled down like three inches, you’ll see I did end up dropping the studio file anyways.

1 Like

I guess he means the place with the boat

1 Like

My reply may be about a year late, but I was just wondering if I could get the code you used to make the boat float. I’ve been struggling with optimization for a custom water floating script and at this point I’m just looking for a way a pro would do it.

6 Likes

could you drop the place file for the boat?

Hey I managed to follow everything and it seems to work, question, the grey buoys, are they needed?

Hello,

Do you have a working boat example you could share the .rbxl of?

Thanks

Right now I’m in the works of making it driveable and fixing issues with weight, I might share it here once I’m done.

2 Likes

I have managed to complete the floating boat on the water terrain! Everything works perfectly but I do need to tweak the boat driving though.

5 Likes

we got realistic boat physics in ROBOX before GTA 6

1 Like

Ok so I’ve fully finished the system, driving and floating works as well as syncing with the waves, radius of the water can literally be as big as it can and performance will still be great. Might consider releasing this as a starter kit for developers in the future.

17 Likes

That’s what I’m talking about! I should definitely check out one of these boat templates it’s so realistic!

That would be cool to play with the kit! nice!

A starter kit would be amazing!
I’d use this effect to create bubbling water in Cauldrons etc. It would give Developers a better understanding on movement! :face_holding_back_tears:

Alright after reading these comments I’m more than happy to release this as a starter kit for a boat system, along with a YouTube video tutorial on how to set it up. I will come back to this post soon with a devforum post link to the kit, see you soon!

4 Likes

fantastic job, that looks amazing

1 Like