Commit Graph

172 Commits

Author SHA1 Message Date
frederic doll
44f31f2927 Remove Recast steep slope filtering when the agent radius is only 1 voxel
#rb aris.theophanidis, mieszko.zielinski
#preflight 63d2c25fd21dbe1d29b14627

[CL 23888570 by frederic doll in ue5-main branch]
2023-01-27 14:20:41 -05:00
frederic doll
3957c56be0 Add option to allow pathfind query with an end location that has no valid polygon around
#rb aris.theophanidis, guillaume.guay, mieszko.zielinski
#preflight 63920af1cf0e31f727a0c844

[CL 23460163 by frederic doll in ue5-main branch]
2022-12-08 21:19:21 -05:00
Aris Theophanidis
03a838da84 First pass at allowing a mix of low, default and high resolution tiles on the navmesh.
CellSize is now deprecated and CellSizes for the various resolutions are stored in the NavMeshResolutionParams array of ARecastNavMesh.
Added NavMeshResolution property to ANavModifierVolume.
Remove duplicated data in dtNavMesh (m_walkableHeight, etc. already in dtNavMeshParams).
Addition of a resolution index to dtMeshHeader.
Increase navmesh version for addition of tile resolutions.
#jira none
#rb Mieszko.Zielinski
#preflight 639106341776b8c21c370f73

[CL 23434938 by Aris Theophanidis in ue5-main branch]
2022-12-07 16:42:43 -05:00
frederic doll
25437b9cdc Recast debug improvement :
- add way to generate only the debug tile
- add way to visualize the geometry received for navmesh generation

#rb aris.theophanidis
#preflight 63876314766a2aeed27a9fc7

[CL 23333278 by frederic doll in ue5-main branch]
2022-11-30 12:06:44 -05:00
henrik karlsson
5b96352978 Fixes for c++ headerunits/modules.
* Adding forward declarations
* Adding "inline" in front of const/constexpr variables in headers
* Adding includes
* A few moves of ctor/dtor to cpp file

#preflight 6372b3ac0c74adb48b49f313
#rb none

[CL 23130896 by henrik karlsson in ue5-main branch]
2022-11-14 19:59:41 -05:00
Stephen Holmes
be96784816 More conversion warnings fixes
#jira UE-166285
#preflight 636d16603852f8738a1d4775
#review-23055159

[CL 23079248 by Stephen Holmes in ue5-main branch]
2022-11-10 10:40:09 -05:00
Aris Theophanidis
3b720bc803 Navigation display improvements
Addition of tile building statistics
Addition of partitioning type, navdata count and triangle count
Addition of profile tags in the tile generation
#jira none
#rb Mieszko.Zielinski
#preflight 636a92b7dc30a4ce96a8b738

[CL 23032335 by Aris Theophanidis in ue5-main branch]
2022-11-08 13:00:51 -05:00
Stephen Holmes
aa8997ef01 AI Truncation warning fixes.
This is the majority of the fixes however a few systems have been left for individual CLs.

#jira UE-166285
#preflight 63616567ce676ae868034ab0
#review-22869010

[CL 22889316 by Stephen Holmes in ue5-main branch]
2022-11-01 15:32:27 -04:00
frederic doll
8a000d660b Improve navmesh generation debugging :
- add ways to see the heightfield bound (and max height)
- improve logging for components added to the NavOctree

#rb aris.theophanidis

[CL 22792849 by frederic doll in ue5-main branch]
2022-10-26 17:27:00 -04:00
mikko mononen
b61e12b277 Nav Corridor: fix nav corridor or high cost neighbour polygons
- fixed DetourNavMeshQuery storeWallSegment() returning some segments in reverse
- fixed degenerate cases in polygon clipping
- change corridor expansion to take fixed area cost into account to not expand to hard to reach areas

#rb Mieszko.Zielinski
#preflight 6349200d3c37eed48151e71d

[CL 22539724 by mikko mononen in ue5-main branch]
2022-10-14 19:06:35 -04:00
Stephen Holmes
ef0154ac65 Upgraded a lot of the navigation code. to use FVector::FReal rather than floats. Areas of code where there was little to gain from doing this but would break existing code have been left as float.
#review-22090184
#jira UE-159397
#preflight 632af1846919ce3998bd2195

[CL 22111650 by Stephen Holmes in ue5-main branch]
2022-09-21 09:16:42 -04:00
bryan sefcik
cb0456c6d4 Cleaned up build.cs files by removing any include paths that were already being added by UBT. This was done to help identify how include paths are being added and to help with future refactoring.
#jira
#preflight 631a5c04967ffc68fbf0dd8f

[CL 21911226 by bryan sefcik in ue5-main branch]
2022-09-08 21:44:02 -04:00
sunduk
ed9ffc19dc PR #9506: Apply bug fix: "Fix 'dtRandomPointInConvexPoly()' returns a garbage value if s == 1.0f." (Contributed by sunduk)
#jira UE-161527
#rb Maxime.Mercier
#preflight 630659440061f895d0473860

[CL 21545023 by sunduk in ue5-main branch]
2022-08-24 13:23:08 -04:00
Bryan sefcik
b4a6e947d8 Ran IWYU on Public headers under Engine/Source/Runtime/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21065896 by bryan.sefcik
#preflight 62d4b1a5a6141b6adfb0c892
#jira

#ROBOMERGE-OWNER: Bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)
#ROBOMERGE-CONFLICT from-shelf

[CL 21181076 by Bryan sefcik in ue5-main branch]
2022-07-20 11:31:36 -04:00
Stephen Holmes
6dd0507189 Check that navigable areas have recast tiles indices that can fit in to an int32. An error log is output if this occurs.
#jira UE-158251
#review-21008880
#rb @Aris.Theophanidis

#preflight 62cd16656a67c3717a6a529b

[CL 21053829 by Stephen Holmes in ue5-main branch]
2022-07-12 04:27:28 -04:00
Stephen Holmes
d92f4e1e00 Time slicing recast ledge span filtering.
#review-20774616
#rb Aris.Theophanidis
#preflight 62b42e4f1463893419c1a6cb
#jira FORT-426667

[CL 20792905 by Stephen Holmes in ue5-main branch]
2022-06-23 08:13:10 -04:00
mikko mononen
f9c6bd4d5a RecastNavmesh: Added FindOverlappingEdges() method to get wall edges that intersect a convex polygon.
#jira none
#rb Mieszko.Zielinski
#preflight 6298763c216be32a762b189b

[CL 20466967 by mikko mononen in ue5-main branch]
2022-06-02 04:51:17 -04:00
aris theophanidis
746aa8b6e2 [Navmesh] Fix low height span filtering during navmesh generation
This fixes a case of missing navmesh under a giant mushroom
#rb Mikko.Mononen
#rb Frederic.Doll
#preflight 6294c42712153e8cebf9f12a

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 20430963 via CL 20430966 via CL 20430972
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20431400 by aris theophanidis in ue5-main branch]
2022-05-30 11:44:28 -04:00
frederic doll
71c605d9e1 Fix RandomPoly crash with 2 points poly :
- add asserts in dtRandomPointInConvexPoly to detect problematic cases
- add special case for point to point links in dtNavMeshQuery::findRandomPointInPoly

#rb guillaume.guay, aris.thoephanidis

#ROBOMERGE-AUTHOR: frederic.doll
#ROBOMERGE-SOURCE: CL 20167439 via CL 20168810 via CL 20169116 via CL 20170041 via CL 20170327
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20172504 by frederic doll in ue5-main branch]
2022-05-12 17:49:32 -04:00
aris theophanidis
894a53f75a [Navmesh] Update dtClosestHeightPointTriangle() to check denominator (plus bonus optimization and improved precision)
#rb Mikko.Mononen
#preflight 62617a0fd929bc34a3e29f60

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 19851644 via CL 19858046 via CL 19863504 via CL 19863609
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19871071 by aris theophanidis in ue5-main branch]
2022-04-22 15:56:24 -04:00
Stephen Holmes
70dca410ee Fix for dtOffMeshSegmentConnection::height is never serialized. It turns out this variable is never used and the whole off mesh segment connection feature is unsuported and has known issues that were never solved at the conceptual level.
I've added comments to make it clearer this feature is unsupported and removed the height variable that isn't used to simplify and tidy up the existing code.

#jira UE-135621
#review-19809739
#rb  Mieszko.Zielinski
#preflight 625ee03d034d8924cdcc72f1

[CL 19826653 by Stephen Holmes in ue5-main branch]
2022-04-20 03:33:40 -04:00
frederic doll
ffd235bd12 Add way to get random position inside a specified nav polygon
I need that because I do a floodfill query (with ARecastNavMesh::FindPolysAroundCircle) and then need to test positions to move in the resulting polygons

[REVIEW] aris.theophanidis, mikko.mononen

#ROBOMERGE-AUTHOR: frederic.doll
#ROBOMERGE-SOURCE: CL 19465568 via CL 19465588 via CL 19465610 via CL 19466833 via CL 19475574 via CL 19475839
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v935-19464907)

[CL 19476450 by frederic doll in ue5-main branch]
2022-03-23 01:26:18 -04:00
aris theophanidis
641029df84 Wrapping RawNavData pointer to help narrow a crash
(with some extra const)
#rb Maxime.Mercier
#preflight 61fc2b043b22793ca369a98d

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 18852387 via CL 18852907 via CL 18853018 via CL 18854025 via CL 18854798
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18854824 by aris theophanidis in ue5-main branch]
2022-02-03 18:11:49 -05:00
aris theophanidis
5f924d7c06 [Navmesh] Moving the initialization of dtNavMesh parameters into the init() and serializing the parameters in ARecastNavMesh.
(for safer initialization flow and fix potential mismatch between navmesh actor and serialized navmesh data)
#rb Stephen.Holmes, Mieszko.Zielinski, Frederic.Doll
#preflight 61f7f4a3114ec25fe09cf120

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 18790349 via CL 18790766 via CL 18791060 via CL 18791564 via CL 18791967
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18792194 by aris theophanidis in ue5-main branch]
2022-01-31 12:29:15 -05:00
Andrew Davidson
4a3e582384 LWC: Remove UE_LARGE_WORLD_COORDINATES_DISABLED toggle
#rb stephen.holmes
[FYI] zak.middleton
#preflight 61f7d18b114ec25fe09648d6

#ROBOMERGE-OWNER: Andrew.Davidson
#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18788533 in //UE5/Release-5.0/... via CL 18788583 via CL 18788850
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)
#ROBOMERGE-CONFLICT from-shelf
#preflight 61f7eb7a114ec25fe0990f8c

[CL 18789644 by Andrew Davidson in ue5-main branch]
2022-01-31 10:10:51 -05:00