How would I make a ship float on a mesh deformation ocean?

  1. What do you want to achieve? I would like to make my ship float in my custom made water, I would like to make it float back and fourth, and side to side.

  2. What is the issue? I just don’t know where to start with this.

  3. What solutions have you found so far? I have been scanning through the DevForum but haven’t found anything there.

Help with this will be highly appreciated, a sube been trying to do this for months now. Thanks,

I’d use BodyPosition for positioning and moving + BodyGyro to keep it from too much rotation.

The achievement of this requires a lot of mathematical calculations. Here is a #resources topic that includes a formula for finding the current water height at any position. You basically want to create some points within the boat, and find the offset of the points compared to the water, and then calculate some sort of midpoint, which will be the cframe of the boat primary part.

There are some replies to the topic, that further detail some ways to do this.

1 Like

I don’t know if this might help but I usually just animate my ships moving back and fourth, and side to side
But I’m not sure I know how to make it float on the mesh deformation water.

1 Like