Abstract
For so long, game developers have had to hand place waypoints, leading to linear paths being taken by Artificial Intelligence (AI) which move between them. These paths often loop, and if they don’t, they only serve to move an AI from point A to point B in the same way time and time again. A more dynamic solution is needed, and the Wave Function Collapse Algorithm is suited to provide that. This solution was implemented in the Unity engine using C#. By utilizing the provided Wave Function Collapse Algorithm template, waypoints were able to be substituted for game objects. When implemented in this manner, the Wave Function Collapse Algorithm places waypoints within a defined area allowing an AI navigator to maneuver between them. Should a waypoint be inaccessible, the waypoints will regenerate. Waypoints, upon the map regenerating, are removed so that any of those colliding waypoints cannot be accessed by the AI. This creates a dynamic path for an AI to traverse. The AI only moves between active waypoints and the map is able to regenerate so that the paths laid out do not succumb to the same pitfalls that traditionally plotted paths do. The next logical step is to apply the Wave Function Collapse Algorithm to a generated map. By allowing the Wave Function Collapse Algorithm to plot waypoints dynamically and continuously, different applications can utilize this to allow an AI to traverse a map in a unique way.
Cite
CITATION STYLE
Trefry, L. (2022). The Wave Function Collapse Algorithm and its Application to AI Navigation. Journal of Student Research, 11(2). https://doi.org/10.47611/jsr.v11i2.1626
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.