mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update entities physics & fix jumping mobs
This commit is contained in:
parent
93e7ae159a
commit
67a5741ed2
3 changed files with 21 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue