Skip to content

Commit

Permalink
navigation stress test map
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Nov 21, 2024
1 parent e5a88fc commit 6e54e5c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions data/maps/navigation_stress_test/bot.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
function goToRandomPoint()
local dst = {
math.random(-100, 100),
0,
math.random(-100, 100)
}
this.navmesh_agent:navigate(dst, 3, 0.5)
local speed_input = this.animator:getInputIndex("speed_y")
this.animator:setFloatInput(speed_input, 3)
end

function start()
goToRandomPoint()
end

function onPathFinished()
goToRandomPoint()
end
Binary file not shown.
Binary file added data/navzones/12322440899604471069.nav
Binary file not shown.

0 comments on commit 6e54e5c

Please sign in to comment.