mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
improved camera relocation
This commit is contained in:
parent
44ba7fe4fa
commit
2b7d590c71
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ function airutils.logic(self)
|
|||
newyaw = yaw + yaw_turn
|
||||
end
|
||||
|
||||
if player then
|
||||
if player and self._use_camera_relocation then
|
||||
--minetest.chat_send_all(dump(newroll))
|
||||
local new_eye_offset = airutils.camera_reposition(player, newpitch, newroll)
|
||||
player:set_eye_offset(new_eye_offset, {x = 0, y = 1, z = -30})
|
||||
|
|
Loading…
Add table
Reference in a new issue