# Buoyancy

**URL:** <https://forums.unrealengine.com/t/buoyancy/144096>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine\
**Created:** [May 20, 2020, 8:14pm UTC](https://forums.unrealengine.com/t/buoyancy/144096 "2020-05-20T20:14:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Not\_ninja\_orte](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Not\_ninja\_orte](https://forums.unrealengine.com/u/Not_ninja_orte)\
**Post date:** [May 20, 2020, 8:14pm UTC](https://forums.unrealengine.com/t/buoyancy/144096/1 "2020-05-20T20:14:48Z")

</div>

I am making a game with swimming and stuff like that. The thing I can’t figure out to make is how you sink/float using keys like for example C to sink, and SpaceBar to float in the water. Any advice?

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [May 21, 2020, 1:16pm UTC](https://forums.unrealengine.com/t/buoyancy/144096/2 "2020-05-21T13:16:16Z")

</div>

What have you done so far? Is your physics volume done? Does your character swimm? If so, then you can start playing with the settings.

For example, considering a fluid friction of 1.0, to surface, you can set the buoyancy \> 1 and to dive, buoyancy \< 1:

 ![1.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/a/caf2c3b0062b24f62d3b62188351b56f491ad2c2.png)

 ![2.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/9/29ad40f54f4fed07c8c46d38727ba06e3efc4928.png)
