fix set_gravity_scale use
This commit is contained in:
parent
ca1b761c8c
commit
669cb48f54
@ -125,7 +125,7 @@ function on_physics_update(tps)
|
|||||||
jump()
|
jump()
|
||||||
end
|
end
|
||||||
body:set_vdamping(flight)
|
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(
|
body:set_linear_damping(
|
||||||
(flight or not grounded) and props.air_damping or props.ground_damping
|
(flight or not grounded) and props.air_damping or props.ground_damping
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user