Description

The OutHit from a LineTraceByChannel against a landscape in Editor is not returning the Physical Material of that landscape. While PIE there is no issue. While using BoxTrace (even in Editor) there is no issue.

I think the issue comes from a call to ConvertQueryImpactHitImp (CollisionConversions.cpp) where a if statement when the collision shape is a Heightfield is not executed if the function call comes from the LineTrace but it is executed if called from BoxTrace. There are more details and screenshots in the UDN case answers.

Steps to Reproduce
  1. Create a landscape and assign a physical material to it.
  2. Implement a simple Utility blueprint which traces a line (LineTraceByChannel node) against the landscape.
  3. From the Out Hit take the Phys Mat.
  4. (Optionally) Print the display name. Nothing is printed.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-195318 in the post.

1
Login to Vote

Fixed
ComponentUE - Simulation - Physics - Query
Affects Versions5.2.1
Target Fix5.6
Fix Commit36438218
CreatedSep 13, 2023
ResolvedSep 20, 2024
UpdatedSep 26, 2024
View Jira Issue