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.

7 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.

8 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.

22 Likes

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

1 Like

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

1 Like

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:

1 Like

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!

6 Likes

fantastic job, that looks amazing

3 Likes

Wow, this is amazing! This is the smoothest buoyancy I’ve seen on Roblox. Would it be easy to implement this to making players float like this?

1 Like

It should be possible yes, not sure if the movement of the player would affect it, but I’m sure there would definitely be a way around it.

1 Like

Initially struggled with setting up the function but i got it now

Why cant Roblox just make this a feature lol

Did you end up releasing this?

Not for free, I realised that I spent too much time on this and it was valuable time that I wasted, but I created something new, the system is for sale, but it’s still pending to be put on sale.