]> git.localhorst.tv Git - blank.git/blobdiff - src/model.hpp
lousy implementation of camera movement
[blank.git] / src / model.hpp
index c0bda4112fe052231340dbcd3a30ce7857e4c3df..b2a6e21a64a424fbd02639ef78004ddd369b9f3b 100644 (file)
@@ -14,16 +14,22 @@ public:
 
        glm::mat4 Transform() const;
 
+       void Velocity(glm::vec3 vel) { velocity = vel; }
        void Position(glm::vec3 pos) { position = pos; }
        void Move(glm::vec3 delta) { position += delta; }
 
        // all angles in radians (full circle = 2π)
+       float Pitch() const { return pitch; }
        void Pitch(float p) { pitch = p; }
        void RotatePitch(float delta) { pitch += delta; }
+       float Yaw() const { return yaw; }
        void Yaw(float y) { yaw = y; }
        void RotateYaw(float delta) { yaw += delta; }
 
+       void Update(int dt);
+
 private:
+       glm::vec3 velocity;
        glm::vec3 position;
        float pitch;
        float yaw;