update entities physics & fix jumping mobs

This commit is contained in:
MihailRis
2025-09-07 15:07:39 +03:00
parent 93e7ae159a
commit 67a5741ed2
3 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -50,8 +50,8 @@ end
function on_update()
if not started then
frameid = frameid + 1
if body:is_grounded() then
frameid = frameid + 1
if target and (frameid % refresh_internal == 1 or not route) then
pathfinding.make_route_async(agent, tsf:get_pos(), target)
started = true