How do i make my boat float on water?

Hello, I have a boat with around 40k triangles (mesh part with bones), I was wondering how i can make it stop wiggling and shaking while its on water, I dont know if its because the character is on the ship or a part is colliding.

5 Likes

You need to make the boat Mass great enough that player movements donā€™t affect it too much.
Personally I make the section out of the water very low Density, then hang a CanCollide false Transparent ā€œkeelā€ Part thatā€™s has a high Density as deep as I can get it and still have it in water.
Another way is to put a Transparent CanCollide false Part with low density above the waterline and put the keel Part on it.
This ā€˜keelā€™ acts like a pendulum, keeping the boat upright, but increasing the overall Mass of the boat.

3 Likes

Thank you so much for the solution, I decided to make the stuff that isnt in the water have low density, and the parts in the water have high density, but it still kinda bugs and wiggles around which is very annoying.

How low are the Density of the parts above the waterline and the Parts below the waterline? Maybe try Massless for the Parts above (or just slightly below) the waterline, then in Test mode play with the Keel Density until the boat floats the way youā€™d like.
The greater the overall Density of you boat the better, but not so much itā€™ll sink below the water when players are on it. If the boat isnā€™t heavy then players will move it when they interact with it.

Terrain Water Density on Roblox is 1.

1 Like

back on my main, its around 0.1 at the top, and 5 at the bottom

Maybe send a link or a picture with a Robloxian for scale so we can see how big is the model (in studs) just to get an idea of how much mass you are dealing with.

For example, if the boat is only 5 studs wide by 4 studs high and 12 studs long then itā€™d be very tough to keep it stable and free of player movement.
You say itā€™s 40k triangles so Iā€™m guessing itā€™s a little bit bigger than the size I mentioned.

Other alternatives are to add an AlignOrientation force (similar to the deprecated BodyGyro) to keep the boat level, or make the Density 5 keel much lower.

Another thing is to make sure your boat isnā€™t really narrow. If you have a wide flat heavy boat like a barge that itā€™s going to be more stable than something like a canoe thatā€™s narrow and light.

Alright, one second, Its around 50k triangles, ill try the alignorientation asap

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.