# How to set projectile direction?

**URL:** <https://forums.unrealengine.com/t/how-to-set-projectile-direction/321092>\
**Category:** World Creation\
**Tags:** projectilemovement, unreal-engine, projectile, question, Blueprint\
**Created:** [June 8, 2015, 5:38pm UTC](https://forums.unrealengine.com/t/how-to-set-projectile-direction/321092 "2015-06-08T17:38:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Finntastic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Finntastic](https://forums.unrealengine.com/u/Finntastic)\
**Post date:** [June 8, 2015, 5:38pm UTC](https://forums.unrealengine.com/t/how-to-set-projectile-direction/321092/1 "2015-06-08T17:38:11Z")

</div>

Hello,

I want to make a projectile that is fired from a ship. This direction must depend on the rotation of the ship, because it must fly from the side of the ship, just like a pirateshipcannons. I created this blueprint of the projectile (called ‘Cannonball’).

 ![45617-projectile.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/c/cac01ae8e66f4b2d4de2dc210f7e40713a1e4b5c.jpeg)

The object is spawned by pressing ‘left mouse button’. The ‘Ship’ is ofcourse the ship and spawn location.This works, but the projectile doesn’t move.  
Is the blueprint I made wrong or are the settings wrong?

I like to hear anything soon and I’m sorry if this is a stupid or frequently asked question.

---

<div class="post-metadata">

**Author:** ![Finntastic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Finntastic](https://forums.unrealengine.com/u/Finntastic)\
**Post date:** [June 13, 2015, 8:56am UTC](https://forums.unrealengine.com/t/how-to-set-projectile-direction/321092/2 "2015-06-13T08:56:23Z")

</div>

I fixed it. For the ones, who have this problem too:  
Create a component on the side of the ship.  
Give the projectile the direction and location of it.

---

<div class="post-metadata">

**Author:** ![Eight\_Bit\_Punk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eight\_Bit\_Punk](https://forums.unrealengine.com/u/Eight_Bit_Punk)\
**Post date:** [November 21, 2015, 3:43am UTC](https://forums.unrealengine.com/t/how-to-set-projectile-direction/321092/3 "2015-11-21T03:43:27Z")

</div>

i know this is old but a screenshot would be sweet. I’m messing w/ projectiles and what not myself. 🙂

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [January 24, 2017, 3:49pm UTC](https://forums.unrealengine.com/t/how-to-set-projectile-direction/321092/4 "2017-01-24T15:49:38Z")

</div>

Thanks for your answer but, how can I give the projectile the direction and location of it?

---

<div class="post-metadata">

**Author:** ![learningOver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@learningOver](https://forums.unrealengine.com/u/learningOver)\
**Post date:** [January 25, 2017, 12:30am UTC](https://forums.unrealengine.com/t/how-to-set-projectile-direction/321092/5 "2017-01-25T00:30:24Z")

</div>

A suggestion would be to simply use a socket attached to the mesh in question, you can then retrieve the world transform of the socket and use that to spawn your projectile as one option.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_da1fc764](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_da1fc764](https://forums.unrealengine.com/u/anonymous_user_da1fc764)\
**Post date:** [September 10, 2017, 9:29am UTC](https://forums.unrealengine.com/t/how-to-set-projectile-direction/321092/6 "2017-09-10T09:29:17Z")

</div>

ITS a component under the blueprints you made for the bulllet, “PROJECTILE MOVEMENT” …after you add that…  
Under its options there is a VELOCITY… Starting/Max and lower down the list is the Direction… Generally choose X and add the similar velocity.

if you dont add velocity it will just spawn and stand still
