Commit Graph

660 Commits

Author SHA1 Message Date
robert seiver
186a79fd37 Stop trying to interpret very large position/rotation/scale values on a Nav Mesh. Instead, forcibly truncate those values to fit inside a 32 bit integer.
#jira UE-198003

#rb Aris.Theophanidis, jacob.wang

[CL 32725096 by robert seiver in ue5-main branch]
2024-04-04 08:13:46 -04:00
a-canary
c2b6ea65e6 PR #11558: Fixed RecastNavMeshGenerator to use TotalNavBounds when IsValid is 'true'
#rb Aris.Theophanidis
#jira UE-208339

[CL 32596594 by a-canary in ue5-main branch]
2024-03-28 17:48:04 -04:00
frederic doll
b34b33ba02 Resubmit CL32516242 after fixing the float precision warnings
Add way to test if we have complete nav data ready around a segment (instead of a single point)
#rb Aris.Theophanidis

[CL 32527222 by frederic doll in ue5-main branch]
2024-03-26 18:30:27 -04:00
alex kahn
7cb2ade710 [Backout] - CL32516242 - CIS Compile Error
#rnx
[FYI] frederic.doll
Original CL Desc
-----------------------------------------------------------------
Add way to test if we have complete nav data ready around a segment (instead of a single point)
#rb Aris.Theophanidis

[CL 32519609 by alex kahn in ue5-main branch]
2024-03-26 15:21:24 -04:00
frederic doll
59e54644c7 Add way to test if we have complete nav data ready around a segment (instead of a single point)
#rb Aris.Theophanidis

[CL 32517870 by frederic doll in ue5-main branch]
2024-03-26 14:29:35 -04:00
yoan stamant
98931f0c5a [NavigationSystem] updated some method display names to be consistent with other BP exposed functions
#jira UE-209508

#rb mikko.mononen

[CL 32470811 by yoan stamant in ue5-main branch]
2024-03-25 11:16:30 -04:00
yoan stamant
4c768189cf Fix CIS Issue 446894: type cast warning
#rb Aris.Theophanidis

[CL 32440125 by yoan stamant in ue5-main branch]
2024-03-22 13:36:29 -04:00
yoan stamant
aec3d741fb [Navigation] fix issue introduced in 32398037 causing navmesh to rebuild
#rb Aris.Theophanidis

[CL 32436895 by yoan stamant in ue5-main branch]
2024-03-22 12:21:58 -04:00
yoan stamant
73e3be5b16 Added unsafe type cast as warnings in AI related plugins/modules: StateTree, Mass, SmartObject. NavigationSystem, and ZoneGraph (partial)
#rb Mieszko.Zielinski, mikko.mononen

[CL 32398227 by yoan stamant in ue5-main branch]
2024-03-21 09:44:11 -04:00
nicolas bonnelly
9faba90583 Added a function in RecastNavMesh that returns the surface area of a poly.
[REVIEW] [at]Aris.Theophanidis

#rb Aris.Theophanidis

[CL 32254300 by nicolas bonnelly in ue5-main branch]
2024-03-14 15:01:10 -04:00
robert seiver
389d2b116f Fixed issues caused by CL 32192095 and resubmitting:
Upgrades to SplineNavModifierComponent:
- Now updates any time any sibling USplineComponent changes in a meaningful way such as changes to: bIsLooping, moving/adding/removing spline points, modifying component transform, adding/removing USplineComponents from the actor
- Now lets the user assign a spline instead of arbitrarily finding the first spline referenced on a the object

#rb Yoan.StAmant
#jira UE-202492

#changelist validated
#virtualized

[CL 32230423 by robert seiver in ue5-main branch]
2024-03-13 17:47:41 -04:00
edwin maynard
eaf34fd6c0 [Backout] - CL32192095 (backed out due to compile errors)
[FYI] robert.seiver
Original CL Desc
-----------------------------------------------------------------
Upgrades to SplineNavModifierComponent:
- It's now an editor only component
- Now updates any time any sibling USplineComponent changes in a meaningful way such as changes to: bIsLooping, moving/adding/removing spline points, modifying component transform, adding/removing USplineComponents from the actor
- Now lets the user assign a spline instead of arbitrarily finding the first spline referenced on a the object
#rb Yoan.StAmant
#jira UE-202492

#changelist validated
#virtualized

[CL 32193532 by edwin maynard in ue5-main branch]
2024-03-12 17:31:55 -04:00
robert seiver
19b356df3c Upgrades to SplineNavModifierComponent:
- It's now an editor only component
- Now updates any time any sibling USplineComponent changes in a meaningful way such as changes to: bIsLooping, moving/adding/removing spline points, modifying component transform, adding/removing USplineComponents from the actor
- Now lets the user assign a spline instead of arbitrarily finding the first spline referenced on a the object
#rb Yoan.StAmant
#jira UE-202492

#changelist validated
#virtualized

[CL 32192156 by robert seiver in ue5-main branch]
2024-03-12 17:01:21 -04:00
yoan stamant
b0f704a407 [InstancedStaticMesh] Fixed partial navigation update for Editor manipulations
- added partial update on component registration/unregistration
- skip updates when adding/removing instances when component is not registered
- added list of dirty areas to pending dirty element so they could be applied when udpate info is successfully processed
- added some missing updates when not using partial updates
#rb jacob.wang, Mieszko.Zielinski
#jira UE-208246

[CL 32053062 by yoan stamant in ue5-main branch]
2024-03-06 10:13:35 -05:00
aris theophanidis
8315806359 [Navmesh] Added more information to the error message and warning messages related to the tile limits.
Added more information when reporting the error message related to the TileNumberHardLimit.
Added more information when reporting the warning message related to the tile pool size.
#rb Maxime.Mercier

[CL 31841210 by aris theophanidis in ue5-main branch]
2024-02-27 10:44:10 -05:00
jacob wang
13616d112e Fix for InstanceStaticMeshComp with odd numbers of negated scale axis won't generate navmesh correctly.
Added the missing flipping indices step where the vertices of ISMComp are converted to Recast Space.

#jira UE-161139
#rb Aris.Theophanidis, Yoan.StAmant, Maxime.Mercier

[CL 31816533 by jacob wang in ue5-main branch]
2024-02-26 16:21:27 -05:00
jacob wang
18e821f5c5 Fix for InstanceStaticMeshComp with odd numbers of negated scale axis won't generate navmesh correctly.
Added the missing flipping indices step where the vertices of ISMComp are converted to Recast Space.

#jira UE-161139
#rb Aris.Theophanidis, Yoan.StAmant, Maxime.Mercier

[CL 31815521 by jacob wang in ue5-main branch]
2024-02-26 15:49:35 -05:00
yoan stamant
9722c0198a [Navigation] Replaced custom NavLink static registration queue by a new world subsystem that will also store NavRelevantObject that are not AActor/UActorComponent based.
This change allow new NavigationSystem created after initial map load (e.g. ANavSystemConfigOverride) to properly recreate its custom nav link mappings and octree.
#rb Aris.Theophanidis, mikko.mononen, robert.seiver

[CL 31733116 by yoan stamant in ue5-main branch]
2024-02-22 15:44:43 -05:00
aris theophanidis
769fc18eb3 NavigationTestingActor: Don't reset ShowStepIndex for every request and allow to save it's value (not transient anymore).
#rb Yoan.StAmant

[CL 31646971 by aris theophanidis in ue5-main branch]
2024-02-20 11:21:49 -05:00
robert seiver
10129605df Fix case where the final segment of the spline wasn't tessellated if it's a closed loop. Also thoroughly tested edge cases such as loop/non-loops with 0, 1, and 2 points
#rb Yoan.StAmant

[CL 31626482 by robert seiver in ue5-main branch]
2024-02-19 16:52:18 -05:00
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
robert seiver
b7de6b84e9 Move BezierUtilities into a more appropriate place: Engine/Classes/Curves. This also fixes a circular dependency created in CL 31592109 and temporarily patched in CL 31594398
#rb Yoan.StAmant

[CL 31612580 by robert seiver in ue5-main branch]
2024-02-19 11:01:37 -05:00
robert seiver
0a1cc994f3 Temporary fix to circular dependency caused by 31581755
[CL 31589284 by robert seiver in ue5-main branch]
2024-02-16 19:14:21 -05:00
robert seiver
7e81d67809 Use an existing adaptive tessellation algorithm in BezierUtilities to subdivide the spline in SplineNavModifierComponent. This algorithm adapts to the curvature of the spline so that curvier spots get broken down into more linear segments for higher fidelity
#jira UE-202492
[REVIEW] [at]Mikko.Mononen
#rb mikko.mononen, aris.theophanidis

#changelist validated
#virtualized

[CL 31581781 by robert seiver in ue5-main branch]
2024-02-16 16:54:19 -05:00
yoan stamant
0d5635a910 Removed some headers dependencies on 'FHitResult' and 'FOverlapResult'
#rb Mieszko.Zielinski

[CL 31470741 by yoan stamant in ue5-main branch]
2024-02-14 09:15:30 -05:00