# Can line trace hit tessellated mesh?

**URL:** <https://forums.unrealengine.com/t/can-line-trace-hit-tessellated-mesh/453665>\
**Category:** Rendering\
**Tags:** Water, unreal-engine, tessellation, UE4, question, Blueprint\
**Created:** [August 10, 2019, 10:02am UTC](https://forums.unrealengine.com/t/can-line-trace-hit-tessellated-mesh/453665 "2019-08-10T10:02:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Actuss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Actuss](https://forums.unrealengine.com/u/Actuss)\
**Post date:** [August 10, 2019, 10:02am UTC](https://forums.unrealengine.com/t/can-line-trace-hit-tessellated-mesh/453665/1 "2019-08-10T10:02:07Z")

</div>

Hi!

I am looking for a way to detect whether actor is above or under the water surface. I am using tesselation to create waves, but line trace ignores displacement, and detects only original - flat mesh. Is there any other way to detect tesselated surface? Thank you!

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [August 22, 2019, 9:50pm UTC](https://forums.unrealengine.com/t/can-line-trace-hit-tessellated-mesh/453665/2 "2019-08-22T21:50:38Z")

</div>

Looking for an answer too.  
The results I get aren’t moving along with the tessellation/changing height.  
So yes I do get a result, but No it’s not taking tessellation into account apparently - at least no the moving tessellation.  
The result is higher then the mesh without tessellation so it seems to be averaging or adding the overall distance to the result.

As a note,  
I have my mesh I want to get a response from set to Collision Enabled - Query Only  
I have the Visibility channel set to Block, everything else is set to block except camera.

After more digging - the way i’m doing things my tessellation/world displacement is GPU based, and isn’t available to the CPU by default, so responses from the line trace aren’t reflecting the current height.  
The next step is

> **[Render Targets](https://docs.unrealengine.com/4.27/en-US/RenderingAndGraphics/RenderTargets/)**
>
> Using Render Targets in Unreal Engine 4.

Which should allow communication between the 2 layers.

In the line trace I have Trace Complex enabled - since the mesh has no custom or simple collision.
