mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix set_gravity_scale use
This commit is contained in:
parent
ca1b761c8c
commit
669cb48f54
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue