add pathfinding.set_height

This commit is contained in:
MihailRis 2026-11-01 18:41:40 +03:00
parent 98cd85f4f6
commit 3ec03738b4
2 changed files with 9 additions and 0 deletions

View file

@ -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)