在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):lattejed/a-star-lua开源软件地址(OpenSource Url):https://github.com/lattejed/a-star-lua开源编程语言(OpenSource Language):Lua 100.0%开源软件介绍(OpenSource Introduction):A* for LuaA clean, simple implementation of the A* pathfinding algorithm for Lua. This implementation has no dependencies and has a simple interface. It takes a table of nodes, a start and end point and a "valid neighbor" function which makes it easy to adapt the module's behavior, especially in circumstances where valid paths would frequently change. The module automatically caches paths which saves CPU time for frequently accessed start and end nodes. Cached paths can be ignored by setting the appropriate parameter in the main function. Cached paths can be purged with the Usage example
NotesThis assumes that nodes are objects (tables) with (at least) members "x" and "y" that hold the node's coordinates.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论