forked from mtcontrib/hangglider
An entire commit just for one comment
This commit is contained in:
parent
1153c08213
commit
43a734a57b
2
init.lua
2
init.lua
@ -126,7 +126,7 @@ minetest.register_entity("hangglider:glider", {
|
|||||||
step_v = player:get_player_velocity().y
|
step_v = player:get_player_velocity().y
|
||||||
if step_v < 0 and step_v > -3 then
|
if step_v < 0 and step_v > -3 then
|
||||||
player:set_physics_override({speed=math.abs(step_v/2) + 0.75})
|
player:set_physics_override({speed=math.abs(step_v/2) + 0.75})
|
||||||
elseif step_v <= -3 then --Cap our fall speed.
|
elseif step_v <= -3 then --Cap our gliding movement speed.
|
||||||
player:set_physics_override({speed=2.25})
|
player:set_physics_override({speed=2.25})
|
||||||
else
|
else
|
||||||
player:set_physics_override({speed=1})
|
player:set_physics_override({speed=1})
|
||||||
|
Loading…
Reference in New Issue
Block a user