# Line Trace from screen center to world

**URL:** <https://forums.unrealengine.com/t/line-trace-from-screen-center-to-world/295399>\
**Category:** Community & Industry Discussion\
**Tags:** Trace, line, unreal-engine, screen, question\
**Created:** [October 6, 2014, 11:23am UTC](https://forums.unrealengine.com/t/line-trace-from-screen-center-to-world/295399 "2014-10-06T11:23:45Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [October 6, 2014, 12:16pm UTC](https://forums.unrealengine.com/t/line-trace-from-screen-center-to-world/295399/7 "2014-10-06T12:16:54Z")

</div>

Get the camera’s location and rotation like so;

 ![17120-linetrace.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/8/8a882e3e30d35485b572906063df8ba0dcd7f59e.jpeg)

5000 is the distance it fires the trace. You can set it to any distance you like.

---

_[View the full topic](https://forums.unrealengine.com/t/line-trace-from-screen-center-to-world/295399)._
