Commit Graph

168 Commits

Author SHA1 Message Date
steve robb
f8d47335a4 Replaced RemoveAt(N, 1, EAllowShrinking::*) with RemoveAt(N, EAllowShrinking::*).
[CL 31626444 by steve robb in ue5-main branch]
2024-02-19 16:51:58 -05:00
aris theophanidis
33581628a2 Add custom link owner's name to link ID warning to allow identifying the problematic actor.
#rb Yoan.StAmant

[CL 31211962 by aris theophanidis in ue5-main branch]
2024-02-06 08:57:17 -05:00
aris theophanidis
9984d70711 OnNavigationBoundsUpdated, make a removal request if the bounds are invalid.
This avoids having invalid RegisteredNavBounds when undoing the addtion of a NavMeshBoundVolume.
#jira UE-204476
#rb Yoan.StAmant

[CL 31012256 by aris theophanidis in ue5-main branch]
2024-01-30 13:01:23 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
bob tellez
be86723155 #UE Lower verbosity of a message about a full queue to a warning and add more info to it so it is actionable
[CL 30679453 by bob tellez in ue5-main branch]
2024-01-18 03:27:28 -05:00
aris theophanidis
1b845cc9c3 Improvements in navigation includes
Removing Actor.h from NavigationTypes.h
Removing NavigationQueryFilter.h when unnecessary in headers
And additional non-unity build fixes
#rb Maxime.Mercier

[CL 30621909 by aris theophanidis in ue5-main branch]
2024-01-15 13:31:49 -05:00
yoan stamant
2f3d181ba5 [NavigationSystem] fixed UpdateActorAndComponentsInNavOctree to properly update attached actors
#rb Aris.Theophanidis

[CL 30491899 by yoan stamant in ue5-main branch]
2024-01-08 17:31:28 -05:00
yoan stamant
a67de4810f [NavigationSystem] Added cheat command 'ai.debug.nav.DirtyAreaAroundPlayer' that can be used with dynamic navmesh to dirty tiles in a square area around the local player using provided value as extent (in cm) or 10 meters if not specified.
#rb Aris.Theophanidis

[CL 30491394 by yoan stamant in ue5-main branch]
2024-01-08 17:18:18 -05:00
frederic doll
e5ec641dc9 Add a way to register a Navigation Invoker based on UObject with a INavigationInvokerInterface instead of an AActor.
#rb Aris.Theophanidis

[CL 29887626 by frederic doll in ue5-main branch]
2023-11-22 09:29:32 -05:00
aris theophanidis
b804c74a54 Addition of NavigationBuildDetailed CSV profile tags in the NavigationSystem tick.
#rb Yoan.StAmant

[CL 29496678 by aris theophanidis in ue5-main branch]
2023-11-06 14:57:31 -05:00
aris theophanidis
84e7e976c1 [Navigation] Optimization to RemoveTiles and addition of profile tags to UpdateActiveTiles()
#rb Yoan.StAmant

[CL 29252623 by aris theophanidis in ue5-main branch]
2023-10-30 17:51:48 -04:00
yoan stamant
7a102e17b3 [Navigation]
- Added flag in FNavigationRelevantData to indicates elements that want to skip dirty areas when added/removed from the NavigationOctree.
- Method ShouldSkipDirtyAreaOnAddOrRemove has been added to INavRelevantInterface to control the flag.
- UpdateNavOctreeElementBounds now takes a list of dirty areas instead of a single area to allow batched modifications.

UInstancedStaticMeshComponent updates:
- Added a cache for navigation bounds
- Implements ShouldSkipDirtyAreaOnAddOrRemove so we don't dirty the whole area covered by the instances on registration but only a list of explicit areas using the instances.
- Added PartialNavigationUpdates for batched modifications
- Fixed partial update not sending the right area for the original position
#rb aris.theophanidis
#rb mikko.mononen
#rb mieszko.zielinski
#jira UE-195210#preflight 653bd451cc4d2d32203134e5

[CL 29185555 by yoan stamant in ue5-main branch]
2023-10-27 12:18:00 -04:00
aris theophanidis
14c8876b52 [Navigation] When updating invokers, use 3D invoker seed locations to compare against the maximum seed distance.
Update InvokersSeedBounds with the vertical limits as well.
#rb Mikko.Mononen

[CL 29067434 by aris theophanidis in ue5-main branch]
2023-10-25 00:57:52 -04:00
aris theophanidis
c4aa198bfe [Navmesh] Fix navmesh not updating below 0 when using invoker's seeds
#rb Julien.Marchand

[CL 29036377 by aris theophanidis in ue5-main branch]
2023-10-24 03:45:00 -04:00
nicolas bonnelly
3b57ef47c7 Added extra logs when Navigation DirtyAreas are being reset.
[REVIEW] [at]Aris.Theophanidis

[CL 28756802 by nicolas bonnelly in ue5-main branch]
2023-10-13 12:23:19 -04:00
aris theophanidis
21338c8d1d Fix "Looking for NavData using invalid FNavAgentProperties." warning spam.
#rb Yoan.StAmant

[CL 28554625 by aris theophanidis in ue5-main branch]
2023-10-06 15:59:20 -04:00
yoan stamant
fbd2795523 [Navigation] use virtual method 'GetWorld' instead of 'GetTypedOuter' for navrelevant object registration.
#rb aris.theophanidis

[CL 28425304 by yoan stamant in ue5-main branch]
2023-10-03 14:56:34 -04:00
aris theophanidis
916eacf5b3 Addition of the average tile generation count per second in LogNavigationHistory.
#rb Stephen.Holmes

[CL 28090737 by aris theophanidis in ue5-main branch]
2023-09-21 12:41:35 -04:00
panos grigoropoulos
61749458fb Add camera location to invoker seed locations when the pawn is null so nav mesh is not removed in cases where the player camera is near the invoker but the player pawn has been destroyed.
[CL 27829426 by panos grigoropoulos in ue5-main branch]
2023-09-13 09:59:02 -04:00
yoan stamant
7416b266cd [Navigation] Fixed warning log caused by NavMeshBoundsVolume actors gathered before their components get registered resulting in invalid dirty areas.
#rb ben.hoffman
#rnx

[CL 27287973 by yoan stamant in ue5-main branch]
2023-08-22 17:18:51 -04:00
aris theophanidis
53ed7c1062 Log invoker priority as string instead of the enum value
#rb Yoan.StAmant

[CL 27249202 by aris theophanidis in ue5-main branch]
2023-08-21 15:03:25 -04:00
aris theophanidis
a4ed8604ca Improve FRecastNavMeshGenerator::MarkDirtyTiles speed by prefiltering dirty area bounds using the bounds of invokers seeds.
Also added some profile tags in MarkDirtyTiles.
#rb Yoan.StAmant

[CL 27049453 by aris theophanidis in ue5-main branch]
2023-08-11 18:04:18 -04:00
yoan stamant
b6f974cc30 [NavigationSystem] replaced requirement of PrimitiveComponent by INavRelevantInterface + UObject.
Added dedicated delegates for UObject based registration and update.
#rb maxime.mercier
#rb aris.theophanidis
#jira UE-186525

[CL 26981216 by yoan stamant in ue5-main branch]
2023-08-09 20:35:21 -04:00
Brice Criswell
8b12100fca Fix no-Recast builds [Github Pull Request: 9579]
#jira UE-164492
#rb Maxime.Mercier, Aris.Theophanidis

[CL 26783940 by Brice Criswell in ue5-main branch]
2023-08-02 15:20:28 -04:00
aris theophanidis
d83f541bad Make sure InvokersMaximumDistanceFromSeed is only active in game mode (ignore it in editor)
#rb Yoan.StAmant

[CL 26648486 by aris theophanidis in ue5-main branch]
2023-07-27 14:28:32 -04:00