Path Drawing to reach the destination

Hi,Iam trying to draw a path to reach the user clicked position.That means when user clicks on the ground then I need draw a path to reach the destination and character or avatar need to traverse in the path which was drawn, but the condition is
Do not pass through the meshes

Please let me know if you didn’t get the question
clearly.

Thank You

Taking the most basic situation where all meshes have a fixed position and size on construction then you can pre-set in your model destination points and intermediate points.

eg https://www.babylonjs-playground.com/#BC8IWV#9

from How to create a path root like google maps - #27 by JohnK

It is worth reading the whole of the topic that the the link comes from as other possibilities are discussed.

1 Like