HaywireInteractive / OnAllFronts-Public

UE5 MilSim FPS / RTS Game (formerly ProjectM)
MIT License
115 stars 22 forks source link

Improve handling of soldier entities who end up off NavMesh bounds #914

Open Leroy231 opened 5 months ago

Leroy231 commented 5 months ago

Skip this if https://github.com/HaywireInteractive/OnAllFronts-Public/issues/920 works well.

Currently we have UMassSnapToNavMeshProcessor which will snap entities that are off NavMesh every few seconds back onto NavMesh bounds. Entities can end up off NavMesh if player moves them there and due to avoidance logic. This isn't great because if a player sees the snapping it's janky. Instead we should rename this processor to UMassStayWithinNavMeshProcessor. Instead of snapping it should set a force or velocity or move target on the entity to cause it get back to NavMesh.