FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.49k stars 339 forks source link

Path finding improvements #562

Closed mrDIMAS closed 8 months ago

mrDIMAS commented 8 months ago

This PR improves path finding by adding a "string pulling" algorithm for final path generated by A*, which makes straight path with absolute minimum of weird turns. Also, it changes path finding itself to use triangle centers, instead of navmesh vertices.