# Custom projectile movement (Zigzag, sine wave...)

**URL:** <https://forums.unrealengine.com/t/custom-projectile-movement-zigzag-sine-wave/546523>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [May 2, 2022, 11:13am UTC](https://forums.unrealengine.com/t/custom-projectile-movement-zigzag-sine-wave/546523 "2022-05-02T11:13:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cita\_To](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cita_to/32/488325_2.png) [@Cita\_To](https://forums.unrealengine.com/u/Cita_To)\
**Post date:** [May 2, 2022, 11:13am UTC](https://forums.unrealengine.com/t/custom-projectile-movement-zigzag-sine-wave/546523/1 "2022-05-02T11:13:17Z")

</div>

Hello all.  
For my project, I need to implement a custom movement for projectile (the bullet will fly with zigzag, sine wave… shape). I looked in to ProjectileMovementComponent but look like it only support projectile fly straight or with gravity curved line.  
If you have any idea to make a custom shape for projectile movement, please share with me.  
Thank you a lot.

---

<div class="post-metadata">

**Author:** ![utkantwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@utkantwood](https://forums.unrealengine.com/u/utkantwood)\
**Post date:** [May 2, 2022, 11:24am UTC](https://forums.unrealengine.com/t/custom-projectile-movement-zigzag-sine-wave/546523/2 "2022-05-02T11:24:12Z")

</div>

You can create a custom curve and add these deltas over time (since projectile is fired) to your projectile movement.

But it depends if you want to have it on one or multiple axis?  
For Single axis you can use the float curve for multiple axis you need a vector curve. The function to grab values is “get float value” or “get vector value”

---

<div class="post-metadata">

**Author:** ![Cita\_To](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cita_to/32/488325_2.png) [@Cita\_To](https://forums.unrealengine.com/u/Cita_To)\
**Post date:** [May 3, 2022, 4:08am UTC](https://forums.unrealengine.com/t/custom-projectile-movement-zigzag-sine-wave/546523/3 "2022-05-03T04:08:17Z")

</div>

> [@utkantwood](#):
>
> ime

Thank you so much. But could you please give me more information? For custom curve, I think I can use timeline for it. But how to add delta as you suggest? I tried to a change to actor location but the result is not good, the vfx, the collider… not follow the move direction, I think we should change the velocity of projectile movement.

---

<div class="post-metadata">

**Author:** ![utkantwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@utkantwood](https://forums.unrealengine.com/u/utkantwood)\
**Post date:** [May 3, 2022, 7:10am UTC](https://forums.unrealengine.com/t/custom-projectile-movement-zigzag-sine-wave/546523/4 "2022-05-03T07:10:05Z")

</div>

Take a look there:

> [@Line Tracing to target and arcing projectile path](https://forums.unrealengine.com/t/line-tracing-to-target-and-arcing-projectile-path/421709):
>
> Hey, So, I’m in a little pitch here. I want to make my projectile travel in an arc from my character to the target hit by line trace. I’ve been doing all grenade tutorials and timelines I could find but nothing seems to be working for what I actually need which is something like this: The closest I got to my goal is lerping the values of X and Y like (0 at 0, 0.5 at 0.5, 1 at 1) and lerping the values of Z like (0 at 0, 1 at 0.5, 0 at 1). My blueprint Part…

This is almost the same procedure.
