fix input library in headless mode

This commit is contained in:
MihailRis
2025-08-10 23:19:10 +03:00
parent dfb83f6835
commit 5a8f4de503
2 changed files with 21 additions and 2 deletions
+3 -1
View File
@@ -110,7 +110,9 @@ function on_update(tps)
end
body:set_vdamping(flight)
body:set_gravity_scale(flight and 0.0 or 1.0)
body:set_linear_damping((flight or not grounded) and air_damping or ground_damping)
body:set_linear_damping(
(flight or not grounded) and air_damping or ground_damping
)
body:set_body_type(noclip and "kinematic" or "dynamic")
end
end