mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'total_visited' to route & refactor
This commit is contained in:
parent
174a3c6871
commit
fdf55ec64d
4 changed files with 81 additions and 64 deletions
|
|
@ -5,7 +5,7 @@ local started
|
|||
local tsf = entity.transform
|
||||
|
||||
agent = pathfinding.create_agent()
|
||||
pathfinding.set_max_visited(agent, 1e5)
|
||||
pathfinding.set_max_visited(agent, 1e4)
|
||||
|
||||
function set_target(new_target)
|
||||
target = new_target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue