# How do i maintain the speed of my projectile bullets?

**URL:** <https://forums.unrealengine.com/t/how-do-i-maintain-the-speed-of-my-projectile-bullets/469030>\
**Category:** World Creation\
**Tags:** projectile-movement, unreal-engine, Physics, Multiplayer, projectile, multiple-instance, question\
**Created:** [August 1, 2020, 9:06am UTC](https://forums.unrealengine.com/t/how-do-i-maintain-the-speed-of-my-projectile-bullets/469030 "2020-08-01T09:06:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashtarias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ashtarias](https://forums.unrealengine.com/u/Ashtarias)\
**Post date:** [August 1, 2020, 9:06am UTC](https://forums.unrealengine.com/t/how-do-i-maintain-the-speed-of-my-projectile-bullets/469030/1 "2020-08-01T09:06:12Z")

</div>

Currently when i fire my projectile, it “flies” fine, but when i run in the same direction as my projectile, it visibly slows down on my screen.

I’ve tried printing the relative velocity of my projectile and char to my screen, and it goes from 1000 when my char is stationary to about 400 when i start running in the same direction.

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?  
I’m thinking one possible way would be to do calculations in my projectile blueprint to ensure that the relative velocity stays the same?

But i’m hoping to eventually make it a networked multiplayer, so i’m guessing that this method wouldn’t work?

---

<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:** [August 1, 2020, 9:23am UTC](https://forums.unrealengine.com/t/how-do-i-maintain-the-speed-of-my-projectile-bullets/469030/2 "2020-08-01T09:23:01Z")

</div>

You’d need to account for player velocity:

New float var in the Projectile Blueprint:

 ![308843-playevel.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/9/0793ebaa1b6139ab63c368b2db0273a131c1d02a.jpeg)

Exposed when the player spawns a projectile:

 ![308852-exposed.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/5/fa5e4861cec8d59a66b665b2042180c032b4f4b6.jpeg)

* * *

> 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 for initial velocity of the player - it is not physically correct.

As in, a rocket fired from a flying plane has the initial speed of the plane already - that’s what needs to be added, as seen above.

Firing rockets mid-air in Quake is not terribly realistic, they do not inherit player’s velocity but it’s still fun. So **you** get to choose how to handle it.

---

<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:** [August 1, 2020, 9:32am UTC](https://forums.unrealengine.com/t/how-do-i-maintain-the-speed-of-my-projectile-bullets/469030/3 "2020-08-01T09:32:43Z")

</div>

If you do not see the exposed variable on the _Spawn Actor_ node, right click it and _Refresh Nodes_.
