# GetHitResultUnderCursor sometimes fails when clicking on landscape

**URL:** <https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378>\
**Category:** World Creation\
**Tags:** Raycast, line-trace, unreal-engine, question\
**Created:** [November 19, 2014, 4:49pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378 "2014-11-19T16:49:41Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jonathan\_Dorman\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonathan\_Dorman\_1](https://forums.unrealengine.com/u/Jonathan_Dorman_1)\
**Post date:** [December 19, 2014, 10:48pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/21 "2014-12-19T22:48:58Z")

</div>

This might be related to another issue I’m working on with landscape collisions. I’ll keep looking into it, but I won’t be able to work on it again until Christmas vacation is over.

Thanks for your patience.

---

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [December 20, 2014, 1:07am UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/22 "2014-12-20T01:07:36Z")

</div>

That’s no problem, I will be having Christmas vacation as well 😛 Sounds good that you might have identified the source of the problem.

---

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [January 8, 2015, 11:06am UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/23 "2015-01-08T11:06:55Z")

</div>

Hi again! Just wondering what the status is with this issue, will a fix make it to 4.7? Please let me know when this issue is solved. Thanks!

---

<div class="post-metadata">

**Author:** ![Jonathan\_Dorman\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonathan\_Dorman\_1](https://forums.unrealengine.com/u/Jonathan_Dorman_1)\
**Post date:** [January 8, 2015, 3:06pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/24 "2015-01-08T15:06:36Z")

</div>

Hi ,

We’re still investigating the cause of the bug. A fix will not likely be included in 4.7.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [March 13, 2015, 5:26pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/25 "2015-03-13T17:26:53Z")

</div>

Hi ,

I apologize for the delay in response. I tested your demo and was able to reproduce this on my end. I have entered a bug report, UE-11821, to be assessed by the development staff.

---

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [March 16, 2015, 12:28pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/26 "2015-03-16T12:28:23Z")

</div>

Okay, when do you think we can expect this issue to be solved? 4.8?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [March 16, 2015, 5:11pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/27 "2015-03-16T17:11:18Z")

</div>

Unfortunately I do not have a timeframe of when a fix will be available.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b467b02b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b467b02b](https://forums.unrealengine.com/u/anonymous_user_b467b02b)\
**Post date:** [June 12, 2015, 2:18pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/28 "2015-06-12T14:18:31Z")

</div>

Hi, I have the same problem, ie. the blueprint function “GetHitResultUnderCursor” sometimes returns Vector(0,0,0) in a landscape. When trying in a plane it works like a charm, the problem occurs with a landscape.

When is this bugg correction planned to? It seems like a basic functionality to support, click and move a pawn in landscape. Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 12, 2015, 3:24pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/29 "2015-06-12T15:24:45Z")

</div>

Hi Slate128,

This bug is still being assessed, if your landscape is a flat plane you should be able to get it to work correctly by slightly sculpting the landscape with the landscape tool.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_624ad6e91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_624ad6e91](https://forums.unrealengine.com/u/anonymous_user_624ad6e91)\
**Post date:** [July 31, 2015, 8:39pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/30 "2015-07-31T20:39:47Z")

</div>

has this bug been fixed for 4.8? Iam not getting issues with hit under trace, but iam getting this issue under object. (Only hits if its a certain radius away from my character).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [August 2, 2015, 3:13pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/31 "2015-08-02T15:13:38Z")

</div>

Hi Venros,

This bug report is still being assessed by the development staff. Unfortunately I don’t have a timeframe of when a fix will be made available.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73094a6c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73094a6c1](https://forums.unrealengine.com/u/anonymous_user_73094a6c1)\
**Post date:** [November 12, 2015, 12:06pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/32 "2015-11-12T12:06:59Z")

</div>

I got this same bug unfortunately. I can send my project if need be. 4.9.2

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3dfb2cf5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3dfb2cf5](https://forums.unrealengine.com/u/anonymous_user_3dfb2cf5)\
**Post date:** [November 17, 2015, 9:17am UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/33 "2015-11-17T09:17:39Z")

</div>

I got that bug, too.

Weird thing: as soon as I sculpt a small area in a landscape components the error doesn’t occur in that component anymore. The bug only occurs when the landscape component is completely flat.

So I made this blueprint:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/2/422e3fc96b669ecf071c1771726b5f10d625419d.jpeg)  
and added a landscape with default values. Then I made a small dent in the landscape component on the right:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/2/5d2d622ce1a3978c2b0c0c6f17b96bb61f0fd391.jpeg)  
Now the ‘No hit’ bug will not occur in that component anymore. In all other components the ‘GetHitResult’ will return false at a lot of locations.

Hope that helps someone.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73094a6c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73094a6c1](https://forums.unrealengine.com/u/anonymous_user_73094a6c1)\
**Post date:** [November 25, 2015, 1:12pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/34 "2015-11-25T13:12:58Z")

</div>

Any of this bug getting fixed? I’m using 4.10

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [November 25, 2015, 2:19pm UTC](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378/35 "2015-11-25T14:19:24Z")

</div>

Hi ,

As mentioned here: [Sometimes GetHitResultUnderCursor returns 0,0,0 on landscape - World Creation - Epic Developer Community Forums](https://answers.unrealengine.com/questions/332498/sometimes-gethitresultundercursor-returns-000-on-l.html)

This issue is specifically caused by a PhysX accuracy error. We have brought this to the attention of NVidia and we are awaiting a fix on their end.

[Previous page](https://forums.unrealengine.com/t/gethitresultundercursor-sometimes-fails-when-clicking-on-landscape/299378.md?page=1)
