# How to eject shell casings out of a socket?

**URL:** <https://forums.unrealengine.com/t/how-to-eject-shell-casings-out-of-a-socket/429468>\
**Category:** Character & Animation\
**Tags:** socket, bullet, spawn-actor, unreal-engine, impulse, question\
**Created:** [July 15, 2018, 4:55am UTC](https://forums.unrealengine.com/t/how-to-eject-shell-casings-out-of-a-socket/429468 "2018-07-15T04:55:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b30829a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b30829a](https://forums.unrealengine.com/u/anonymous_user_4b30829a)\
**Post date:** [July 15, 2018, 4:55am UTC](https://forums.unrealengine.com/t/how-to-eject-shell-casings-out-of-a-socket/429468/1 "2018-07-15T04:55:11Z")

</div>

Spent the whole day on this and cant find a solution,please guys help.I made this blueprint and it spaws the shellcasings on the weapon socket but when i try to add impulse to them,so they can rotate in a visualy realistic way,they only go west,rather than ejecting paralel with the gun.Can you guys tell me where am i messing up? please

 ![247445-shellproblem.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/9/7894211f0b5d9eae9e6df428bb85e2097d530dae.png)

---

<div class="post-metadata">

**Author:** ![JamesGMarks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JamesGMarks](https://forums.unrealengine.com/u/JamesGMarks)\
**Post date:** [July 15, 2018, 12:31pm UTC](https://forums.unrealengine.com/t/how-to-eject-shell-casings-out-of-a-socket/429468/2 "2018-07-15T12:31:04Z")

</div>

Add impulse takes a value in world space (afaik) so likely you just need to multiply your impulse vector by the forward vector of your gun.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b30829a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b30829a](https://forums.unrealengine.com/u/anonymous_user_4b30829a)\
**Post date:** [July 15, 2018, 6:12pm UTC](https://forums.unrealengine.com/t/how-to-eject-shell-casings-out-of-a-socket/429468/3 "2018-07-15T18:12:45Z")

</div>

unfortunately it didnt work.Could there be any other solution?

---

<div class="post-metadata">

**Author:** ![Omn3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Omn3](https://forums.unrealengine.com/u/Omn3)\
**Post date:** [January 23, 2019, 6:34am UTC](https://forums.unrealengine.com/t/how-to-eject-shell-casings-out-of-a-socket/429468/4 "2019-01-23T06:34:10Z")

</div>

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/1/001df96a5612ab3f670c2edddae593a1bf4531ed.png)

Try that
