how would i implement a 3d pathfinding system?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Quwatzoki

I spent the whole day trying to use godot’s navmesh to implement a pathfinding system, I want to move my kinematicbody enemy to my player but can’t seem to make it work, after all I don’t understand what it does ,
I’d like someone to explain it for me or give me an idea about the way the method works. I don’t want people to write me my code .I prefer to learn how to do it myself … so what I did was that I stored a get_simple_path() into an array variable and then did what other tutorials told me to do ,
increase the array’s index and subtract it by my AI’s current position and eventually, normalize the whole thing and feed it into the move_and_slide() function,…
think you can help me?:frowning:

what exactly is going wrong? is the enemy just not moving? that could be a result of the final normalized vector being too small, in that case all you would have to do is multiply it with a bigger number (usually 5000 or bigger).

zen3001 | 2020-05-02 17:00

it actually moves straight into a wall and doesn’t change it’s way, it’s like his trying to get to the other side even tho the nav mesh is fine! i assure you

Quwatzoki | 2020-05-02 18:00

:bust_in_silhouette: Reply From: rogerdv

Forget about 3.2 path finding system, it changes in 4.0. I managed to implement path finding in both, but dont ask me how, I just copied and pasted code from tutorials and changed things until I made it work. But it was a simple click and move there code, still havent implemented that NPCs can move to where they want.