# Modify pathfinding to use straightened paths

**URL:** <https://forums.unrealengine.com/t/modify-pathfinding-to-use-straightened-paths/434765>\
**Category:** World Creation\
**Tags:** pathfinding, Navigation, path-follow, unreal-engine, question\
**Created:** [September 30, 2018, 12:08pm UTC](https://forums.unrealengine.com/t/modify-pathfinding-to-use-straightened-paths/434765 "2018-09-30T12:08:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tuatec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tuatec](https://forums.unrealengine.com/u/tuatec)\
**Post date:** [June 16, 2023, 5:40am UTC](https://forums.unrealengine.com/t/modify-pathfinding-to-use-straightened-paths/434765/4 "2023-06-16T05:40:10Z")

</div>

In case someone finds this thread as well, this might get you started with a custom path finder class in Unreal Engine,

> **[Overriding Default UE4 Pathfinding Behavior Through RecastNavMesh](https://unrealingens.wordpress.com/2018/05/02/overriding-default-ue4-pathfinding-behavior-through-recastnavmesh/)**
>
> When creating my own topdown tile-based game, I found a wonderful tutorial by crussel which provides all of the essential implementation for creating your own pathfinding method: Neatly replacing N…

This one gives more details about how to implement three different solutions in C++,

> [@Modify pathfinding cost - DetourNavMeshQuery subclass](https://forums.unrealengine.com/t/modify-pathfinding-cost-detournavmeshquery-subclass/342472/2):
>
> First issue, DetourNavMeshQuery isn’t a class, it’s just the header file that contains many classes for Detour queries. I assume though, that the class you want to subclass is dtQueryFilter - which handles path costs for Detour. The reason why it doesn’t show up in the editor, is that none of the Recast/Detour library classes are UObject classes (except for the classes that Epic Provides for UE4). Solution #3 shows you how to subclass dtQueryFilter, but it’s probably not your best solution - un…

---

_[View the full topic](https://forums.unrealengine.com/t/modify-pathfinding-to-use-straightened-paths/434765)._
