get height, camera + cow movement with keys
[demo] / src / camera.h
index 62120f1..1fbbf9c 100644 (file)
@@ -18,6 +18,8 @@ protected:
        float phi;
        float distance;
 
+       Vec3 position;
+
 public:
        OrbitCamera();
        virtual ~OrbitCamera();
@@ -25,6 +27,7 @@ public:
        virtual Mat4 get_view_matrix() const override;
 
        void set_orbit_params(float theta, float phi, float distance);
+       void set_position(float x, float y, float z);
 };
 
 Mat4 calc_projection_matrix(float fov_deg, float aspect, float n, float f);