fix set_gravity_scale use

This commit is contained in:
MihailRis 2025-08-19 21:20:44 +03:00
parent ca1b761c8c
commit 669cb48f54

View File

@ -125,7 +125,7 @@ function on_physics_update(tps)
jump()
end
body:set_vdamping(flight)
body:set_gravity_scale(flight and 0.0 or props.gravity_scale)
body:set_gravity_scale({0, flight and 0.0 or props.gravity_scale, 0})
body:set_linear_damping(
(flight or not grounded) and props.air_damping or props.ground_damping
)