Replace deprecated :get_look_yaw() calls with new :get_look_horizontal() + pi/2. Fixes lord-server/lord#1047
This commit is contained in:
@@ -25,6 +25,7 @@ function Player:get_look_dir() end
|
|||||||
function Player:get_look_vertical() end
|
function Player:get_look_vertical() end
|
||||||
--- yaw in radians
|
--- yaw in radians
|
||||||
--- * Angle is counter-clockwise from the +z direction.
|
--- * Angle is counter-clockwise from the +z direction.
|
||||||
|
--- @return number
|
||||||
function Player:get_look_horizontal() end
|
function Player:get_look_horizontal() end
|
||||||
--- sets look pitch
|
--- sets look pitch
|
||||||
--- * radians: Angle from looking forward, where positive is downwards.
|
--- * radians: Angle from looking forward, where positive is downwards.
|
||||||
@@ -40,6 +41,7 @@ function Player:get_look_pitch() end
|
|||||||
--- yaw in radians - Deprecated as broken. Use
|
--- yaw in radians - Deprecated as broken. Use
|
||||||
--- `get_look_horizontal`.
|
--- `get_look_horizontal`.
|
||||||
--- * Angle is counter-clockwise from the +x direction.
|
--- * Angle is counter-clockwise from the +x direction.
|
||||||
|
--- @deprecated
|
||||||
function Player:get_look_yaw() end
|
function Player:get_look_yaw() end
|
||||||
--- sets look pitch - Deprecated. Use `set_look_vertical`.
|
--- sets look pitch - Deprecated. Use `set_look_vertical`.
|
||||||
function Player:set_look_pitch(radians) end
|
function Player:set_look_pitch(radians) end
|
||||||
|
|||||||
Reference in New Issue
Block a user