mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
fix input library in headless mode
This commit is contained in:
parent
dfb83f6835
commit
5a8f4de503
2 changed files with 21 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue