]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/PlayerController.hpp
treat head pitch and yaw as entity state
[blank.git] / src / ui / PlayerController.hpp
index 9b4057b380d02c7a20582763103dc877580857fe..b9d3b2bd6cf6854f53cf5586b07fa49dcc72cc12 100644 (file)
@@ -35,9 +35,9 @@ public:
        void TurnHead(float pitch, float yaw) noexcept;
 
        /// get player pitch in radians, normalized to [-PI/2,PI/2]
-       float GetPitch() const noexcept { return pitch; }
+       float GetPitch() const noexcept;
        /// get player yaw in radians, normalized to [-PI,PI]
-       float GetYaw() const noexcept { return yaw; }
+       float GetYaw() const noexcept;
 
        /// start doing primary action
        /// what exactly this means depends on the active item
@@ -62,8 +62,6 @@ private:
        World &world;
        Player &player;
        glm::vec3 move_dir;
-       float pitch;
-       float yaw;
        bool dirty;
 
        WorldCollision aim_world;