# Dynamically Change the Velocity of a Projectile Movement Component

**URL:** <https://forums.unrealengine.com/t/dynamically-change-the-velocity-of-a-projectile-movement-component/779234>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [February 27, 2023, 12:55am UTC](https://forums.unrealengine.com/t/dynamically-change-the-velocity-of-a-projectile-movement-component/779234 "2023-02-27T00:55:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 3, 2023, 1:04pm UTC](https://forums.unrealengine.com/t/dynamically-change-the-velocity-of-a-projectile-movement-component/779234/3 "2023-03-03T13:04:15Z")

</div>

You can do the same with velocity. Also, consider keeping the projectile speed inside the projectile and only pipe in player’s current speed / velocity, as in:

> [@How do i maintain the speed of my projectile bullets?](https://forums.unrealengine.com/t/how-do-i-maintain-the-speed-of-my-projectile-bullets/469030/2):
>
> You’d need to account for player velocity: New float var in the Projectile Blueprint: Exposed when the player spawns a projectile: I assume it’s this drop in relative velocity that’s causing the visible slowdown in my projectile’s flying speed. How do i make it not slow down? It’s not slowing down; it simply has the same velocity regardless of whether you were moving at the time or not. The default setup in the template does not account fo…

This way you do not need to hardcode projectile velocity outside the actors who care about it the most. It may be irrelevant if it’s a single value but if you have a blaster that can take different type of ammo, each having different speeds, it’s more natural this way.

---

_[View the full topic](https://forums.unrealengine.com/t/dynamically-change-the-velocity-of-a-projectile-movement-component/779234)._
