# Boyancy using world position offset

**URL:** <https://forums.unrealengine.com/t/boyancy-using-world-position-offset/428642>\
**Category:** Rendering\
**Tags:** Raycast, Water, ocean, vertices, world-position-offse, unreal-engine, question\
**Created:** [July 3, 2018, 10:34pm UTC](https://forums.unrealengine.com/t/boyancy-using-world-position-offset/428642 "2018-07-03T22:34:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freudian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Freudian](https://forums.unrealengine.com/u/Freudian)\
**Post date:** [July 3, 2018, 10:34pm UTC](https://forums.unrealengine.com/t/boyancy-using-world-position-offset/428642/1 "2018-07-03T22:34:12Z")

</div>

Hi, I am attempting to pass co-ordinate information to a blueprint class to allow it to bob up and down on water. However, after some searching, I have discovered it not being an easy task. I am currently using World Position offset in my material shader to generate my ocean although I looked about, and attempted “toying with” (I don’t do a lot of material work) world displacement. Seen Below

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/3/1e3acfb60d5a3d80323cd01281cbeb3a18f80234.jpeg)

I can’t seem to find any way to get the vector information of any of the vertices. I have attempted the raytracing method but alas, of course, that only returns my mesh’s collision information that is not updated in real-time. I am currently handling all this in blueprint as I have no knowledge of C++

* * *

Trivially here is my blueprint setup for the “Shark fin” I am attempting to try and create on the surface

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/1/2e14d0c1e90eb816846a3410a75a5bb9877569b5.png)

* * *

And also the result

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/5/6b5b6cf4538b653c147f79fa060d63723ec269f1.png)

* * *

If there is an alternate way of doing this I’m all ears but my end goal is to at least get some sort of Z information passed to my sharkfin blueprint.

* * *

Thanks,

**Freudian**

---

<div class="post-metadata">

**Author:** ![emilelc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emilelc](https://forums.unrealengine.com/u/emilelc)\
**Post date:** [May 24, 2023, 11:57pm UTC](https://forums.unrealengine.com/t/boyancy-using-world-position-offset/428642/2 "2023-05-24T23:57:51Z")

</div>

Hi I am running into the same issues have you found a solution yet.  
Thanks
