Buoyancy

Get your ship sailing!

You can sample the wave height in C# in order to do your own buoyancy calculations. There is a buoyancy demo under Stylized Water For URP > Demos > Buoyancy.

Check out the BuoyantObject.cs script for an example.

Keep in mind, the buoyancy logic is very basic. It's more meant as a showcase to show what you can use the 'sampling wave height' functionality for.

Last updated