Attention | Topic was automatically imported from the old Question2Answer platform. | |
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?
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