0 votes

Hi,

I'm generating 3d landscapes using simplex noise, the generation is delegated to several threads so I can generate big or even infinite worlds.

I want to add some enemies to my world, so I need to implement some kind of pathfinding.

From what I can tell, Godot's navmesh system cannot be used in my case because my terrain is generated at runtime.

I have looked at this question: https://godotengine.org/qa/48732/bake-navmesh-during-runtime, but I have not been able to get anything functional.

I have also tried to implement A*, but I am struggling to write the logic to link the correct nodes together - my terrain is generated in chunks so I need to make sure all the chunks are linked together along the edges (I've been stuck here for some time)

Are there any other methods you think I could try? Or do you think it would be better to implement some kind of bug algorithm for my enemies and use something like raycasting to detect objects?

Thanks.

in Engine by (49 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.