# How can I make a ship interact with the waves on water?

**URL:** <https://forums.unrealengine.com/t/how-can-i-make-a-ship-interact-with-the-waves-on-water/342441>\
**Category:** Blueprint\
**Tags:** box-collision, unreal-engine, UE4, Blueprint, question\
**Created:** [December 26, 2015, 12:45pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-ship-interact-with-the-waves-on-water/342441 "2015-12-26T12:45:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Radosm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Radosm](https://forums.unrealengine.com/u/Radosm)\
**Post date:** [December 26, 2015, 12:45pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-ship-interact-with-the-waves-on-water/342441/1 "2015-12-26T12:45:52Z")

</div>

Hello, I have downloaded the water planes engine features sample and the bp\_ocean has some awesome looking waves. The problem I am having is that whilst the waves are randomly generated and look 3d, the collision is a 2d box so my ship doesn’t go up on the waves and it does not look realistic. If I try and apply convex decomposition the engine crashes so thats not the sollution. Any idea how I can sort this out ?  
Here is a picture of the static mesh . It moves around and goes from being above the collision box to being below it.

 ![71935-waves+collision.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/7/997d13b722ae23cc71280e80b8786687bfd87a75.jpeg)

---

<div class="post-metadata">

**Author:** ![calembendell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@calembendell](https://forums.unrealengine.com/u/calembendell)\
**Post date:** [December 27, 2015, 7:55am UTC](https://forums.unrealengine.com/t/how-can-i-make-a-ship-interact-with-the-waves-on-water/342441/2 "2015-12-27T07:55:10Z")

</div>

First, this is a very good question.  
The problem of rigidbodies interacting with fluids is largely solved but extremely computationally expensive.  
It’s also pretty complicated.

The tutorial you’re looking for is the Render Target Lookup.  
Everything should still apply to UE4.9

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

That tutorial does an excellent job, but the best solution to this problem in a game I’ve seen was having a set of sphere colliders mimic the approximate positions of the waves.  
By converting the waves into a heightmap and then creating a series of overlapping spheres (every sphere should overlap with its 4 neighbours by about 3/4 its radius), and have these overlapping spheres interact with the ship hull, which should be a very simple convex mesh, a surprisingly physically accurate model can be established.  
I’m not sure what the properties for the sphere materials should be in UE4, but with some tweaking this allows you to achieve both a good “look” and a reasonably good estimate of how much the waves should be physically pushing an object in a direction, as the spheres will push objects around as they roll.

---

<div class="post-metadata">

**Author:** ![Radosm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Radosm](https://forums.unrealengine.com/u/Radosm)\
**Post date:** [December 27, 2015, 3:18pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-ship-interact-with-the-waves-on-water/342441/3 "2015-12-27T15:18:21Z")

</div>

Thanks man , will try it out 🙂 Man I was looking everywhere for this 😛
