forked from LizzyFleckenstein03/Memeclone
Localize player_vel_yaw
This commit is contained in:
parent
a923b61ac8
commit
e5263d854e
|
@ -35,8 +35,9 @@ minetest.register_globalstep(function(dtime)
|
|||
local pitch = degrees(player:get_look_vertical()) * -1
|
||||
local yaw = degrees(player:get_look_horizontal()) * -1
|
||||
|
||||
local player_vel_yaw = 0
|
||||
|
||||
if degrees(minetest.dir_to_yaw(player_velocity)) == 0 then
|
||||
player_vel_yaw = 0
|
||||
yaw = 0
|
||||
else
|
||||
player_vel_yaw = degrees(minetest.dir_to_yaw(player_velocity))
|
||||
|
|
Loading…
Reference in New Issue