diff options
author | raymoo <uguu@installgentoo.com> | 2016-06-17 12:57:27 -0700 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-06-24 02:13:09 +0100 |
commit | fa0bbbf96df17f0d7911274ea85e5c049c20d07b (patch) | |
tree | 90ffa15ba7e7b13ffa079d09d69bc97dfc2b2020 /src/player.h | |
parent | 04fb10914c0d03ee77dafe610f336f23c58949ab (diff) | |
download | minetest-fa0bbbf96df17f0d7911274ea85e5c049c20d07b.tar.gz minetest-fa0bbbf96df17f0d7911274ea85e5c049c20d07b.tar.bz2 minetest-fa0bbbf96df17f0d7911274ea85e5c049c20d07b.zip |
Player: New get_look, set_look API
Deprecate get_look / set_look pitch / yaw
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h index 6687ca86e..e6fcf388a 100644 --- a/src/player.h +++ b/src/player.h @@ -188,16 +188,28 @@ public: m_breath = breath; } - f32 getRadPitch() + // Deprecated + f32 getRadPitchDep() { return -1.0 * m_pitch * core::DEGTORAD; } - f32 getRadYaw() + // Deprecated + f32 getRadYawDep() { return (m_yaw + 90.) * core::DEGTORAD; } + f32 getRadPitch() + { + return m_pitch * core::DEGTORAD; + } + + f32 getRadYaw() + { + return m_yaw * core::DEGTORAD; + } + const char *getName() const { return m_name; |