]> git.localhorst.tv Git - blobs.git/blobdiff - src/graphics/Camera.hpp
track creature with camera
[blobs.git] / src / graphics / Camera.hpp
index 51dd8f15c447e1a67731b816b78f7211f251179d..736020da8b491efa9ea39f9d4c3ecdef9276f8f2 100644 (file)
@@ -5,6 +5,9 @@
 
 
 namespace blobs {
+namespace creature {
+       class Creature;
+}
 namespace world {
        class Body;
 }
@@ -38,6 +41,8 @@ public:
        Camera &MapView(int surface, const glm::vec3 &pos, float roll = 0.0f) noexcept;
        /// look at center, position relative to orbital reference plane for children
        Camera &Orbital(const glm::vec3 &pos) noexcept;
+       /// look at creature from above
+       Camera &TopDown(const creature::Creature &, float distance, float roll = 0.0f);
 
        const glm::mat4 &Projection() const noexcept { return projection; }
        const glm::mat4 &View() const noexcept { return view; }