An EQS Query scores the tests using reference values opposite of how the comments and tooltips describe. It will score items closest to the referenced value lower than those further away, but the expected outcome is that the items closer to the reference value will be scored higher than those further away.
The issue seems to be in EnvQueryTest::NormalizeItemScores, that the clamped score is subtracted from the reference value, and the absolute value of that is then normalized. This leads to exact matches equating to 0.
Here is a screenshot of the current outcome for the test described in the Steps to Reproduce:
[Image Removed]
Here is what the expected result is:
[Image Removed]
Expected Result: The Query scores points closest to a 45 degree angle the highest and points further away from 45 degrees should be lower and normalize to 0.
Actual Result: The Query scores points closest to a 45 degree angle the lowest and those furthest away the highest.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-164917 in the post.
1 |
Component | UE - AI - EQS |
---|---|
Affects Versions | 5.0.3, 5.1 |
Target Fix | 5.1 |
Created | Sep 23, 2022 |
---|---|
Resolved | Sep 26, 2022 |
Updated | Oct 21, 2022 |