# Twin stick 2D shooter (Line trace)

**URL:** <https://forums.unrealengine.com/t/twin-stick-2d-shooter-line-trace/434413>\
**Category:** Blueprint\
**Tags:** linetrace, unreal-engine, twin-stick, UE4, question, Blueprint\
**Created:** [September 24, 2018, 7:31pm UTC](https://forums.unrealengine.com/t/twin-stick-2d-shooter-line-trace/434413 "2018-09-24T19:31:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TychoBolt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TychoBolt](https://forums.unrealengine.com/u/TychoBolt)\
**Post date:** [September 24, 2018, 7:31pm UTC](https://forums.unrealengine.com/t/twin-stick-2d-shooter-line-trace/434413/1 "2018-09-24T19:31:04Z")

</div>

Hi!

So basically I want to make a sidescrolling game with a 2D camera (think along the lines of the basic side scroller template in UE4) but you can aim and shoot in 360 degrees with the right analog stick (so not towards or from the camera).

I think the easiest way to sort of get this going is just to get a line trace that can go in 360 degrees in a 2D plane, but how would I go about doing that?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![TychoBolt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TychoBolt](https://forums.unrealengine.com/u/TychoBolt)\
**Post date:** [September 24, 2018, 8:50pm UTC](https://forums.unrealengine.com/t/twin-stick-2d-shooter-line-trace/434413/2 "2018-09-24T20:50:28Z")

</div>

Ok so I figured it out for anyone that’s curious (see image).  
I haven’t cleaned it up, but you get the idea.

 ![254607-linetrace.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/5/f25cd7c54fa669c097a54c6ab5d622700b21cc90.jpeg)
