# about creating projectile that have sine/cosine movement type.

**URL:** <https://forums.unrealengine.com/t/about-creating-projectile-that-have-sine-cosine-movement-type/1391886>\
**Category:** Game Development\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [November 15, 2023, 9:45am UTC](https://forums.unrealengine.com/t/about-creating-projectile-that-have-sine-cosine-movement-type/1391886 "2023-11-15T09:45:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinccw](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chinccw/32/777124_2.png) [@chinccw](https://forums.unrealengine.com/u/chinccw)\
**Post date:** [November 15, 2023, 9:45am UTC](https://forums.unrealengine.com/t/about-creating-projectile-that-have-sine-cosine-movement-type/1391886/1 "2023-11-15T09:45:56Z")

</div>

hi, i am trying to create a projectile that have a sine/cosine movement. these nodes works but how do i control the speed of Y movement ? currently it’s too slow.

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/3/8c389103b4059fd1ac54959a7246d134645df85d.png)  
also is there any better way to do it without using event tick ? i couldn’t find any tutorial about this, if anyone know of one share me the links please.  
i appreciated all the help.

edit: solved. thank you for all the help. 🙏 🙏 🙏

---

<div class="post-metadata">

**Author:** ![Chatouille](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chatouille/32/1194622_2.png) [@Chatouille](https://forums.unrealengine.com/u/Chatouille)\
**Post date:** [November 15, 2023, 10:22am UTC](https://forums.unrealengine.com/t/about-creating-projectile-that-have-sine-cosine-movement-type/1391886/2 "2023-11-15T10:22:09Z")

</div>

Add a multiplier before the SIN, should let you control the Y speed.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/0/fd0aaec425b63a3e3843da9d57fe66b3a58f4996.png)

I don’t think you can do this without using Tick.  
If your Sine movement is small and fast and pretty much just a funny a visual gimmick, you could rely on WorldPositionOffset in the projectile’s Material graph instead to improve performance.

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [November 15, 2023, 10:22am UTC](https://forums.unrealengine.com/t/about-creating-projectile-that-have-sine-cosine-movement-type/1391886/3 "2023-11-15T10:22:24Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/6/9d60a47ce88619df47055e63449f2b8603eebee5.png)

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [November 15, 2023, 10:24am UTC](https://forums.unrealengine.com/t/about-creating-projectile-that-have-sine-cosine-movement-type/1391886/4 "2023-11-15T10:24:29Z")

</div>

So offset WorldPos in material is more efficient than actual moving  
the mesh? because he has to move the mesh anyway (I mean translate the projectile)

---

<div class="post-metadata">

**Author:** ![Chatouille](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chatouille/32/1194622_2.png) [@Chatouille](https://forums.unrealengine.com/u/Chatouille)\
**Post date:** [November 15, 2023, 10:30am UTC](https://forums.unrealengine.com/t/about-creating-projectile-that-have-sine-cosine-movement-type/1391886/5 "2023-11-15T10:30:33Z")

</div>

If it’s a small visual gimmick oscillation he doesn’t necessarily have to translate the mesh/collision, it depends on the use case obviously.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 15, 2023, 10:30am UTC](https://forums.unrealengine.com/t/about-creating-projectile-that-have-sine-cosine-movement-type/1391886/6 "2023-12-15T10:30:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
