Description

GetPolysInBox should get only the polygons(FNavPoly) that are on the bounds of the box. However, there are cases where polygon data outside the bounds of the box is currently obtained. It gets polygons outside the boundaries of the same tile.

In the screenshot, should get polygon data only [D:2] , but also get polygons for [D:3] and [D:4].

Steps to Reproduce
  1. Open attached project with Visual Studio.
  2. Start PIE.

Then, it can see get polygon data via GetPolysInBox are outside the box.

In repro project, execute ARecastNavMesh::GetPolysInBox in Character's Tick function.

 

Result:

Get polygon data that are outside the box 

Expected:

Get polygon data that are only within the box.

 

Have Comments or More Details?

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

1
Login to Vote

Won't Fix
ComponentUE - AI - Navigation
Affects Versions4.224.234.24
CreatedApr 6, 2020
ResolvedJul 19, 2022
UpdatedJul 19, 2022