mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 09:29:44 +00:00
add pathfinding.set_height
This commit is contained in:
parent
98cd85f4f6
commit
3ec03738b4
2 changed files with 9 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ local size = body:get_size()
|
|||
agent = pathfinding.create_agent()
|
||||
pathfinding.set_max_visited(agent, 1e3)
|
||||
pathfinding.set_width(agent, math.max(size[1], size[3]))
|
||||
pathfinding.set_height(agent, math.ceil(size[2]))
|
||||
pathfinding.avoid_tag(agent, "core:liquid", 8)
|
||||
|
||||
function set_target(new_target)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue