#Ai Pathing in godot 4.0
13 messages · Page 1 of 1 (latest)
You need to setup a navigation region. You can bake the mesh in the editor or at run time.
Then the entity you wish you move needs a navigation agent as a child.
Look at the navigation agent documentation, it's pretty self explanatory from there
I'm pretty new to code so I'm having a lot of troubles with it
Looks good other than the steering stuff. Did you try it without the steering?
ya then it wont move at all
set velocity to desired velocity
wdym how would i write that
Pretty sure velocity is a property of character body
Try velocity = _velocity before move and slide
So just velocity = desired velocity
Also do not do _velocity = move_and_slide
Call it by itself
Ok I will give it a try tomorrow and let u know