Fix gravity

master
zmv7 2022-02-05 14:32:41 +05:00 committed by GitHub
parent 311e2d7340
commit ece21637f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -268,9 +268,9 @@ if not chk or chk < 0.06 or chk > 30 then return false, "Incorrect value / Out o
eye_height=size*1.47,
visual_size={x=size,y=size,z=size}})
if size < "1" then
player:set_physics_override(tonumber(math.sqrt(size)), 1, 1)
player:set_physics_override(math.sqrt(size), 1, nil)
else
player:set_physics_override(math.sqrt(size), math.sqrt(size), 1/math.sqrt(size))
player:set_physics_override(math.sqrt(size), math.sqrt(size), nil)
end
end})