X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fgraphics%2FCamera.hpp;h=163291673a0f6a5a05786309d69eceef73b07bd2;hp=736020da8b491efa9ea39f9d4c3ecdef9276f8f2;hb=dd8b3145a03ed676b0ae6311c29fc3d68f666b15;hpb=6c1097479fd1ea41f0f76b91e67613822acf2e90 diff --git a/src/graphics/Camera.hpp b/src/graphics/Camera.hpp index 736020d..1632916 100644 --- a/src/graphics/Camera.hpp +++ b/src/graphics/Camera.hpp @@ -42,7 +42,9 @@ public: /// 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); + Camera &TopDown(const creature::Creature &, double distance, double roll = 0.0f); + /// look at creature from the side, angle in euler (ZXY in surface reference plane) + Camera &Radial(const creature::Creature &, double distance, const glm::dvec3 &angle); const glm::mat4 &Projection() const noexcept { return projection; } const glm::mat4 &View() const noexcept { return view; }