mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add pathfinding.set_jump_height
This commit is contained in:
parent
ac1623f86c
commit
174a3c6871
4 changed files with 18 additions and 6 deletions
|
|
@ -5,12 +5,16 @@ local started
|
|||
local tsf = entity.transform
|
||||
|
||||
agent = pathfinding.create_agent()
|
||||
pathfinding.set_max_visited(agent, 100000)
|
||||
pathfinding.set_max_visited(agent, 1e5)
|
||||
|
||||
function set_target(new_target)
|
||||
target = new_target
|
||||
end
|
||||
|
||||
function set_jump_height(height)
|
||||
pathfinding.set_jump_height(agent, height)
|
||||
end
|
||||
|
||||
function get_target()
|
||||
return target
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue