aboutsummaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h
index 107c829f8..1c9dde7e0 100644
--- a/src/player.h
+++ b/src/player.h
@@ -102,6 +102,16 @@ public:
return m_yaw;
}
+ f32 getRadPitch()
+ {
+ return -1.0 * m_pitch * core::DEGTORAD;
+ }
+
+ f32 getRadYaw()
+ {
+ return (m_yaw + 90.) * core::DEGTORAD;
+ }
+
virtual void updateName(const char *name)
{
snprintf(m_name, PLAYERNAME_SIZE, "%s", name);