When a landscape uses simple collision, the returned physical material can be mismatched.

This seems to be a result of ConvertHeightfieldDataForPhysx within ULandscapeHeightfieldCollisionComponent::CookCollisionData not offsetting DominantLayers by NumSamples for simple collision leading to a material mismatch.

Steps to Reproduce

Open the advanced vehicle template project.

Set the landscape's simple collision mip level to 5.

Perform a pair of line traces, one complex and one simple, against the landscape's desert area and note the returned physical materials are different.

Perform the same traces again, this time against the landscape's track area and again not that the returned physical materials are different(and switched).

Have Comments or More Details?

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

Login to Vote

ComponentUE - LD & Modeling - Terrain - Landscape
Affects Versions4.224.23
Target Fix4.24
Fix Commit9647746
Main Commit11224363
Release Commit9650698
CreatedOct 16, 2019
ResolvedOct 17, 2019
UpdatedJan 25, 2021
View Jira Issue