# Single Line Trace does not always hit the Object (Landscape)

**URL:** <https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138>\
**Category:** World Creation\
**Tags:** Trace, unreal-engine, Landscape, bug-report, Blueprint, question\
**Created:** [November 16, 2014, 10:45pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138 "2014-11-16T22:45:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [November 16, 2014, 10:45pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/1 "2014-11-16T22:45:50Z")

</div>

Hey,  
I’m trying to get the location where the trace hit the landscape.

[http://s14.directupload.net/images/141116/wpbvmlx3.png](http://s14.directupload.net/images/141116/wpbvmlx3.png)

Unfortunately on some locations, the trace doesnt hit the landscape and is just going through it.  
The camera is below the landscape, that’s why it seems to be invisible in the image below.

[http://s14.directupload.net/images/141116/3yy2pdto.png](http://s14.directupload.net/images/141116/3yy2pdto.png)

It just happens on some locations, mostly it works. It’s not random, if it works once it always works, and if it’s going trough on some location, it always does.  
The Landscape is the only object which is blocking the Terrain Trace Channel.

---

<div class="post-metadata">

**Author:** ![Oneiros86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oneiros86](https://forums.unrealengine.com/u/Oneiros86)\
**Post date:** [January 26, 2015, 5:00pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/2 "2015-01-26T17:00:12Z")

</div>

I have the same issue. There is a lot of randomness to the problem, but it almost always misses at 0 on the X axis in world space. My traces are going straight down.

As someone suggested on your forum thread, I’ll try using a shape trace instead.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [January 26, 2015, 5:02pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/3 "2015-01-26T17:02:03Z")

</div>

I use a sphere trace with a radius of 10, that works.

---

<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 15, 2015, 3:25pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/4 "2015-03-15T15:25:52Z")

</div>

Hi everyone,

I was able to reproduce this and have entered a bug report, UE-11871 to be assessed by the development staff.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [March 15, 2015, 8:30pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/5 "2015-03-15T20:30:22Z")

</div>

Haha, I asked it 4 months ago and now finally you enter a bug report 😉 Well, it’s not a very critical bug since it’s very easy to work around.

---

<div class="post-metadata">

**Author:** ![yateam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yateam](https://forums.unrealengine.com/u/yateam)\
**Post date:** [June 13, 2015, 10:05pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/6 "2015-06-13T22:05:13Z")

</div>

How do you workaround this?

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [June 13, 2015, 10:06pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/7 "2015-06-13T22:06:15Z")

</div>

Just use a sphere trace with a radius of 10 🙂

---

<div class="post-metadata">

**Author:** ![swamprunner7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@swamprunner7](https://forums.unrealengine.com/u/swamprunner7)\
**Post date:** [October 29, 2015, 7:45pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/8 "2015-10-29T19:45:30Z")

</div>

Have same problem [hereanswers.unrealengine.com/questions/324259/null-location-from-gethitresultundercursorbychanne.html](http://hereanswers.unrealengine.com/questions/324259/null-location-from-gethitresultundercursorbychanne.html)

---

<div class="post-metadata">

**Author:** ![swamprunner7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@swamprunner7](https://forums.unrealengine.com/u/swamprunner7)\
**Post date:** [October 29, 2015, 7:52pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/9 "2015-10-29T19:52:00Z")

</div>

Seems like they still not fix it.

---

<div class="post-metadata">

**Author:** ![knack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knack](https://forums.unrealengine.com/u/knack)\
**Post date:** [February 4, 2016, 9:31am UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/10 "2016-02-04T09:31:53Z")

</div>

i found that problem today, still not fix… works with sphere trace

---

<div class="post-metadata">

**Author:** ![Tynril](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tynril](https://forums.unrealengine.com/u/Tynril)\
**Post date:** [April 13, 2016, 11:23pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/11 "2016-04-13T23:23:15Z")

</div>

Observed the same bug today. Is there an update available on UE-11871?

---

<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:** [April 14, 2016, 3:50pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/12 "2016-04-14T15:50:23Z")

</div>

Hi Tynril,

This bug is still under assessment by the development staff. Unfortunately, I do not have a timeframe of when a fix will be made available. I have updated the bug report to reflect that more developers are experiencing this error.

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [June 17, 2016, 12:24pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/13 "2016-06-17T12:24:58Z")

</div>

This happens on very very large chunks on Flat Landscapes Parts. The general Area where it happens in my case stays consistent but gets larger or smaller depending on the Offset on the Z Axis. Hope this information is of any help here a screenshot that showcases the Misses on a grid.

> **[Gyazo](https://gyazo.com/f4f3d4cba52b1b559396290b7612c598)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

---

<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 17, 2016, 12:59pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/14 "2016-06-17T12:59:14Z")

</div>

Thank you for the updated information, !

---

<div class="post-metadata">

**Author:** ![JulianS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JulianS](https://forums.unrealengine.com/u/JulianS)\
**Post date:** [August 19, 2016, 9:19am UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/15 "2016-08-19T09:19:43Z")

</div>

Have the same problem with 4.12.5

Problem only appears with a Landscape as hit target. It usually hits but randomly misses.

Workaround by SphereTraceByChannel with a radius \> 0

---

<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 19, 2016, 1:51pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/16 "2016-08-19T13:51:25Z")

</div>

Hi JulianS,

Thank you for the update. This error is still unresolved, and can be viewed [here](https://issues.unrealengine.com/issue/UE-11871).

---

<div class="post-metadata">

**Author:** ![ALangHung](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ALangHung](https://forums.unrealengine.com/u/ALangHung)\
**Post date:** [January 10, 2017, 12:17pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/17 "2017-01-10T12:17:08Z")

</div>

it seems not only occur on landscape, because i put a cube under the landscape, when the line trace through it(no hit occur), the line trace doesn’t hit the cube either.  
But the character can be hit by the line trace.

---

<div class="post-metadata">

**Author:** ![zincr0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zincr0](https://forums.unrealengine.com/u/zincr0)\
**Post date:** [July 17, 2018, 10:57pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/18 "2018-07-17T22:57:50Z")

</div>

This also affects Boxtrace on 4.19

---

<div class="post-metadata">

**Author:** ![IRJayJay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IRJayJay](https://forums.unrealengine.com/u/IRJayJay)\
**Post date:** [May 29, 2022, 12:40pm UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/19 "2022-05-29T12:40:49Z")

</div>

Might just help someone, but a solution on another thread was that traces that start and end at the same coordinates will fail on landscapes. make your start/end just one unit away from each other.

---

<div class="post-metadata">

**Author:** ![JoeWintergreen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joewintergreen/32/1194565_2.png) [@JoeWintergreen](https://forums.unrealengine.com/u/JoeWintergreen)\
**Post date:** [March 19, 2024, 8:29am UTC](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138/20 "2024-03-19T08:29:58Z")

</div>

This worked for me, 2 years later. What an insane thing!

[Next page](https://forums.unrealengine.com/t/single-line-trace-does-not-always-hit-the-object-landscape/299138.md?page=2)
