Commit Graph

204 Commits

Author SHA1 Message Date
Benn Gallagher
8757cb3641 Physics interface cleanup.
* Removed deprecated or dead code paths
* Simplified build system setup for physics support
* Deprecated build system flags and unsupported macros

#jira none
#rb Chris.Caulfield, Kriss.Gossart
#preflight 62963ec0fe779f23c8ea0c5e

[CL 20450744 by Benn Gallagher in ue5-main branch]
2022-06-01 06:59:18 -04:00
Aris Theophanidis
e65180d107 [WP Dynamic Navmesh] Handle preexisting spawned objects when loading cells
#rb Yoan.StAmant
#jira UE-150793
#preflight 6290c68a1f0041249bed5027

[CL 20392089 by Aris Theophanidis in ue5-main branch]
2022-05-27 08:58:40 -04:00
Stephen Holmes
6fa4991713 Fix for nav mesh not being present in various levels.
Issue was associated with IsWorldPartitionedDynamicNavmesh change.

#review-20362143
#preflight 628e1a1b9f6fbd94aded8a69

[CL 20362569 by Stephen Holmes in ue5-main branch]
2022-05-25 08:00:27 -04:00
Aris Theophanidis
483d0aea71 [Navmesh] Fix check triggering in ARecastNavMesh::GetActiveTiles
#rb Mieszko.Zielinski
#jira none
#rnx
#preflight 628d31b3af76b78af54c36f1

[CL 20354548 by Aris Theophanidis in ue5-main branch]
2022-05-24 15:59:37 -04:00
Jeremy Moore
ff967b1163 Remove PRIMITIVE_SCENE_DATA_FLAG_DRAWS_VELOCITY and only use PRIMITIVE_SCENE_DATA_FLAG_OUTPUT_VELOCITY.
Tidy up use of FPrimitiveSceneProxy velocity getters.
Now DrawsVelocity() is only for velocity relevance.
And HasDynamicTransform() is for determining if we need to store previous transform state.
VSM caching was using PRIMITIVE_SCENE_DATA_FLAG_DRAWS_VELOCITY so replaced that with PRIMITIVE_SCENE_DATA_FLAG_SHOULD_CACHE_SHADOW which should use the old behavior and can be tweaked in future using ShouldCacheShadow().

A common pattern for determining whether to output velocity now is to check if a previous transform exists, and to OR in AlwaysHasVelocity().
I found some proxy types that don't check for previous transform.
Also I found that the debug physics aggregate types *never* check for previous transform.
These are pre-existing potential bugs for fixing in another pass.

Also I found some proxies that don't currently fill out velocity relevance.
These are pre-existing potential bugs for fixing in another pass.

#preflight 62863f789016c6dd897f1cd2
#fyi andrew.lauritzen

[CL 20279797 by Jeremy Moore in ue5-main branch]
2022-05-19 10:08:15 -04:00
Aris Theophanidis
e2dab4ca3d [WP navmesh] Limit tile building to the loaded space when using a WP dynamic navmesh
- Update and use active tiles when using URecastNavMeshDataChunk
- Keep track of dirty areas origin
- Fix some logs TileRef
#rb Mieszko.Zielinski
#jira UE-150793
#preflight 6286493e9016c6dd8982744e

[CL 20279641 by Aris Theophanidis in ue5-main branch]
2022-05-19 09:59:18 -04:00
luciano ferraro
f41d494120 Improved Debug log regarding the tiles being dirtied by a dirty area (LogNavigationDirtyArea) by also showing how many tiles are new in the pending dirty list, instead of just the total, which sometimes is misleading
[REVIEW] [at]Loic.Devaux, [at]Karl.Dubois, [at]Guillaume.Guay, [at]Aris.Theophanidis

#ROBOMERGE-AUTHOR: luciano.ferraro
#ROBOMERGE-SOURCE: CL 20178772 via CL 20181533 via CL 20181757 via CL 20181832 via CL 20181875
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20183664 by luciano ferraro in ue5-main branch]
2022-05-13 13:24:53 -04:00
Aris Theophanidis
7ee1676796 Fix gameplay debugger navmesh rendering issue
When using bRestrictBuildingToActiveTiles, GetDebugGeometry() would gather the data for all the active tiles for each tile in the TileSet instead of only once, leading to unsuable framerate.
#rb Mieszko.Zielinski
#jira none
#preflight 627434d8fd59d6606e05341a

[CL 20064369 by Aris Theophanidis in ue5-main branch]
2022-05-05 16:48:48 -04:00
Aris Theophanidis
5c4115f532 [WP Dynamic Navmesh] First pass on WP dynamic navmesh
- Dynamic navmesh in a world partitioned map is now allowed to build a base navmesh and stream cells from it
- Ignore navigation dirtiness coming from objects loading/unloading that are part of the base navmesh
- Addition of vlog boxes on addition and removal of navigation data chunk actors
#rb Yoan.StAmant
#jira UE-150793
#preflight 626fe108220f89f0ad3fdb14

[CL 20008063 by Aris Theophanidis in ue5-main branch]
2022-05-02 10:10:57 -04:00
stefan-zimecki
cd813f6703 RecastNavMesh: Fixed cell size clamping based on issue reported via github PR.
PR #8899: [Bugfix][Recast] Fixed cell size adjustment in RecastNavMesh (Contributed by stefan-zimecki)

#jira UE-142756
#rb Mieszko.Zielinski
#preflight 6262544cd929bc34a31586f6

[CL 19861957 by stefan-zimecki in ue5-main branch]
2022-04-22 03:36:26 -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
frederic doll
860eed028c Fix missing array initialization in FPImplRecastNavMesh::FindPolysAroundCircle resulting in NodePolyCost not being returned
#rb aris.theophanidis

#ROBOMERGE-AUTHOR: frederic.doll
#ROBOMERGE-SOURCE: CL 19429994 via CL 19429998 via CL 19432864 via CL 19438357 via CL 19438526
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v930-19419903)

[CL 19442444 by frederic doll in ue5-main branch]
2022-03-18 18:51:49 -04:00
aris theophanidis
4eb193aafc [Navmesh] Fix bShouldDiscardSubLevelNavData
Moving conditions allowing the property to take effect from ARecastNavMesh::PostInitProperties() to ARecastNavMesh::PostLoad() and delaying the check to discard navdata if there is no navigation system yet.
Removing previous ShouldDiscardSubLevelNavData() function that would fallback to read value from NavSysCDO when there is no navigation system.
#rb Yoan.StAmant, Maxime.Mercier
#jira UE-113463
[RN] fix Warning: UNavigationSystemV1 bShouldDiscardSubLevelNavData property was not working in some cases. With this fix navdata from sublevel will be properly discarted if the property is true (it's default value).
#preflight 62323fb4736af8e0822c951b

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 19412570 via CL 19414029 via CL 19427618 via CL 19427717
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v930-19419903)

[CL 19429581 by aris theophanidis in ue5-main branch]
2022-03-17 19:10:55 -04:00
aris theophanidis
d131f4029b Crash fix for UActorFactory::NewActorClass that can be null.
#rb Yoan.StAmant
#rb Steve.Robb
#jira UE-146444
#lockdown Nick.Whiting
#preflight 623394e3791d231e02090253

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 19426688 in //UE5/Release-5.0/... via CL 19427263
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v930-19419903)

[CL 19429562 by aris theophanidis in ue5-main branch]
2022-03-17 19:09:40 -04:00
aris theophanidis
c66291a8dc Set IsSpatiallyLoaded to false by default for NavMeshBoundsVolume
#jira UE-143902
#rb Yoan.StAmant
#preflight 621914e61d1c50179947eca9
#lockdown julien.marchand
#rnx

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 19152054 in //UE5/Release-5.0/... via CL 19153670
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19161103 by aris theophanidis in ue5-main branch]
2022-02-25 19:34:38 -05:00
aris theophanidis
379c9008c5 [Navmesh] Fix broken "Mask Fill Collision Under" feature (regression from CL 17897123)
#jira UE-141641
#rb Yoan.StAmant
#rnx
#lockdown julien.marchand
#preflight 6201871ce9567e667309dbaa

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 18895186 via CL 18895202 via CL 18895234 via CL 18896471 via CL 18896758
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18897012 by aris theophanidis in ue5-main branch]
2022-02-07 20:06:23 -05: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
fred kimberley
7fbfaf57c8 Require explicit constructors/casts when converting between FVector, FVector3d, and FVector3f.
#jira UE-122078
#rb Andrew.Davidson, Colin.McGinley
#preflight standard build

#ROBOMERGE-AUTHOR: fred.kimberley
#ROBOMERGE-SOURCE: CL 18817999 in //UE5/Release-5.0/... via CL 18818012 via CL 18822871
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18824721 by fred kimberley in ue5-main branch]
2022-02-02 07:59:31 -05:00
andrew davidson
8e95b10069 Fix FVector2D variant casts - Runtime
Submitted on behalf of fred.kimberley
#rb andy.davidson
#preflight 61f8729a5a026d2d19bb9ca6
#preflight 61f87a025a026d2d19be76ed

#ROBOMERGE-OWNER: andrew.davidson
#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18802361 in //UE5/Release-5.0/... via CL 18802891 via CL 18821557
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18821641 by andrew davidson in ue5-main branch]
2022-02-02 01:47:07 -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
stephen holmes
b96646319e Fix for broken nav mesh links after UE5 integrate. Submitting for Frederic Doll.
#rb Frederic.Doll, Stephen.Holmes, Aris.Theophanidis
#preflight 61f265a1706ac5ea0cf479b8

#ROBOMERGE-AUTHOR: stephen.holmes
#ROBOMERGE-SOURCE: CL 18752174 via CL 18752190 via CL 18752201 via CL 18752320 via CL 18752399
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18752407 by stephen holmes in ue5-main branch]
2022-01-27 07:31:13 -05:00
stephen holmes
5aa9445cf5 Added LLM tags for the navigation octree.
Also removed two unnecessary tags in the nav mesh code.
The new LLM tags mirror the existing STAT_Navigation_CollisionTreeMemory functionality.

#preflight 61e9be95f160213534a34b64?step=5a6e

#ROBOMERGE-OWNER: stephen.holmes
#ROBOMERGE-AUTHOR: stephen.holmes
#ROBOMERGE-SOURCE: CL 18680481 via CL 18681738 via CL 18682025 via CL 18682845 via CL 18682857 via CL 18682876
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v902-18672795)

[CL 18682897 by stephen holmes in ue5-main branch]
2022-01-20 17:35:30 -05:00
aris theophanidis
5c12d1675a Fix for navmesh queries (related to CL 18595413)
In the ANavigationData::RebuildAll() flow, NavDataGenerator->RebuildAll() is called and it releases the detour navmesh to make a new one. In that flow, the new dtNavMesh params where never sets, causing m_bvQuantFactor to be 0 and navmesh queries to fail.
(not that RebuildAll() flow can be called automatically when bNavigationAutoUpdateEnabled is enabled in editor)
#jira UE-139610
#rb Stephen.Holmes
#preflight 61e9643e276892ce10921113

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 18673754 in //UE5/Release-5.0/... via CL 18674060 via CL 18674106
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v902-18672795)

[CL 18674160 by aris theophanidis in ue5-main branch]
2022-01-20 09:45:01 -05:00
Aris Theophanidis
2bd1f24a66 [WP Navmesh] Fix removed actors still showing in the editor actor list after navmesh build
Enable usage of source control provider when building WP navmesh
Fix issue with deleted packages being added to source control
Make sure WP navmesh actor in WP levels remains empty (data is provided by navmesh chunk actors)
#jira UE-114032
#rb Yoan.StAmant
#robomerge 5.0
#preflight 61e839b93778a195dee90f08

[CL 18659327 by Aris Theophanidis in ue5-main branch]
2022-01-19 11:44:26 -05:00