> For the complete documentation index, see [llms.txt](https://alexander-ameye.gitbook.io/stylized-water/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alexander-ameye.gitbook.io/stylized-water/features/buoyancy.md).

# 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*.&#x20;

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.
