update standard components

This commit is contained in:
MihailRis
2025-09-13 22:46:45 +03:00
parent df9ea32848
commit 2d29b8c46c
2 changed files with 21 additions and 28 deletions
+4 -4
View File
@@ -37,16 +37,16 @@ local function process_player_inputs(pid, delta)
if isleft then vec3.sub(dir, right, dir) end
if vec3.length(dir) > 0.0 then
mob.go(dir, speed, issprint, iscrouch, vel)
mob.go({dir[1], dir[3]}, speed, issprint, iscrouch, vel)
end
if mob.is_flight() then
if isjump then
mob.elevate(speed * 24, delta)
mob.move_vertical(speed * 8)
elseif iscrouch then
mob.lower(speed * 24, delta)
mob.move_vertical(-speed * 8)
end
elseif isjump then
elseif body:is_grounded() and isjump then
mob.jump()
end
end