# Convert Mouse Location to World Space seems to be inaccurate?

**URL:** <https://forums.unrealengine.com/t/convert-mouse-location-to-world-space-seems-to-be-inaccurate/487171>\
**Category:** Cinematics & Media\
**Tags:** bug, unreal-engine, top-down, question, build-editor\
**Created:** [August 7, 2021, 7:46pm UTC](https://forums.unrealengine.com/t/convert-mouse-location-to-world-space-seems-to-be-inaccurate/487171 "2021-08-07T19:46:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 8, 2021, 6:05am UTC](https://forums.unrealengine.com/t/convert-mouse-location-to-world-space-seems-to-be-inaccurate/487171/4 "2021-08-08T06:05:43Z")

</div>

> detecting a thin box  
> collision placed on the floor of the  
> terrain, which is completely flat.

Here’s a method that does not rely on geometry, making such box redundant (but you may have other uses for it, ofc)

 ![345857-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/1/2211907bf87bd18c183901307bcba110dcaf8751.png)

Think of this as of a virtual plane positioned at Plane Origin and facing along the Plane Normal. The returned intersection would be the world location where the line hits that plane.

Here’s a visualisation and an example:

> [@Line Trace from a 3d point to mouse location](https://forums.unrealengine.com/t/line-trace-from-a-3d-point-to-mouse-location/237661/3):
>
> You’re tracing with a fixed distance of 500, replacing the projection’s X with a fixed value. It’s actually hard to imagine how that would look like, a strangely distorted / twisted undulating surface mayhaps? cool, for sure. I want this trace to stay on the same plane as my character, so the X value of the start point & end point should be the same. Consider the following: green_circle create a virtual plane where the character is and point it towards X (Plane Normal 1,0,0) …

---

_[View the full topic](https://forums.unrealengine.com/t/convert-mouse-location-to-world-space-seems-to-be-inaccurate/487171)._
