# Landscape line-trace hits underground?

**URL:** <https://forums.unrealengine.com/t/landscape-line-trace-hits-underground/475212>\
**Category:** Rendering\
**Tags:** Terrain, Trace, normal, line, unreal-engine, Landscape, question\
**Created:** [November 30, 2020, 10:58am UTC](https://forums.unrealengine.com/t/landscape-line-trace-hits-underground/475212 "2020-11-30T10:58:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![3S\_Interactive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3s_interactive/32/499107_2.png) [@3S\_Interactive](https://forums.unrealengine.com/u/3S_Interactive)\
**Post date:** [November 30, 2020, 10:58am UTC](https://forums.unrealengine.com/t/landscape-line-trace-hits-underground/475212/1 "2020-11-30T10:58:21Z")

</div>

I’m trying to ignore line-trace hits to the underside of a landscape so my agents don’t become trapped underground.

Is there a way to somehow make the landscape one-sided (positive normals only) so line-traces from below don’t report a hit?

In theory, I could check:

```
If (landscape_trace out.hit.normal.z < 0) then
{
   ignore the landscape_underside line trace hit
}

```

That would probably work, but it would be more efficient if I could enable some single-sided landscape option (if it exists). The alternative is to create a single-sided static mesh landscape, but I prefer to use UE4 editable landscapes.

Cheers.

![323466-debuglinetrace.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/a/53a0bcbf9bbec5ecfadfb358c691a2f5ce463cd0.gif)
