Charakterbewegungen hinzugefügt, Deko hinzugefügt, Kochrezepte angepasst
This commit is contained in:
parent
95945c0306
commit
a0c893ca0b
1124 changed files with 64294 additions and 763 deletions
7
mods/futil/minetest/set_look_dir.lua
Normal file
7
mods/futil/minetest/set_look_dir.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
local pi = math.pi
|
||||
function futil.set_look_dir(player, look_dir)
|
||||
local pitch = math.asin(-look_dir.y)
|
||||
local yaw = math.atan2(look_dir.z, look_dir.x)
|
||||
player:set_look_vertical(pitch)
|
||||
player:set_look_horizontal((yaw + 1.5 * pi) % (2.0 * pi))
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue