Question by
munnergep · Sep 23, 2016 at 07:08 PM ·
2dpathpathfollowing
2d fixed path patrolling
Hi!
I really need some help.
I would like to force a gameobject (sprite) to patrolling between the red squares. All waypoints are fixed and there are a lot of intersections (cross roads).
I added the waypoints to an array, but how can i define the neighbors? Is there any algorithm exists for this problem?
Thank you!
And sorry for my basic english.
2dpath.png
(1.6 kB)
Comment