# Simple hover-effect on Z-axis

**URL:** <https://forums.unrealengine.com/t/simple-hover-effect-on-z-axis/460191>\
**Category:** Blueprint\
**Tags:** hover, unreal-engine, Blueprint, question\
**Created:** [January 4, 2020, 1:28pm UTC](https://forums.unrealengine.com/t/simple-hover-effect-on-z-axis/460191 "2020-01-04T13:28:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ventichrigu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ventichrigu](https://forums.unrealengine.com/u/Ventichrigu)\
**Post date:** [January 4, 2020, 1:28pm UTC](https://forums.unrealengine.com/t/simple-hover-effect-on-z-axis/460191/1 "2020-01-04T13:28:47Z")

</div>

Hi all

I try to do a hovereffect in midair.  
I followed the tutorial here: [[Adding a Hover Component | Live Training | Unreal Engine - YouTube](https://www.youtube.com/watch?v=5kltaGld6fQ)][1]

My problem with this is that i don’t have any ground/floor. I want my objects to just hover anywhere on the z-axis.  
-10/+10 up and down.  
It seems that this is somehow not so easy to do. I tried to do it with a set location but the problem here is the object just jumps and doesent hover. Plus I have to do it for every object.

 ![294797-updown.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/0/cb0a34e800c5e822a5baf8e874bce98fd995b100.png)

Any idea how to do this? Other than the one in the tutorial?

Thank you and all the best

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [January 4, 2020, 6:25pm UTC](https://forums.unrealengine.com/t/simple-hover-effect-on-z-axis/460191/2 "2020-01-04T18:25:58Z")

</div>

I’d do this:

Create a timeline with a sinusoidal curve:

 ![294789-tl.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/5/e95196eefb5ac3ed62961f66ecbfdfaa36c577a2.png)

Make sure to set the right length and tick the “Loop” box.

Next, this:

 ![294811-bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/0/e70000f7cfeef6eca8e2ff82d9de0e4e58aeb3d9.png)

You can use Lerp instead of Ease if you want. Note that my example is in a Level BP, that’s why I have a reference to Cube. In your Actor BP you have your Target as Self and it should work.

P.S. To split a vector variable into float components, right click on the yellow output pin and select Split Struct Pin.

---

<div class="post-metadata">

**Author:** ![Ventichrigu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ventichrigu](https://forums.unrealengine.com/u/Ventichrigu)\
**Post date:** [January 6, 2020, 1:00pm UTC](https://forums.unrealengine.com/t/simple-hover-effect-on-z-axis/460191/3 "2020-01-06T13:00:43Z")

</div>

Thank you! This helpt me to solve the problem.  
My Actor\_BP:

 ![294888-hovereffect.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/2/9a244591ff8d18c5fe3ccfc7d70d2a03dc805438.png)
