X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FCamera.hpp;h=e4c0b7fce04ddc37841a78ab57f6d667140ddc84;hb=a19fdf3d9f0d7ecbf6eeeec817856d85049a8336;hp=736020da8b491efa9ea39f9d4c3ecdef9276f8f2;hpb=e0180e01f4c659c97973f585fea5eb3344254ce0;p=blobs.git diff --git a/src/graphics/Camera.hpp b/src/graphics/Camera.hpp index 736020d..e4c0b7f 100644 --- a/src/graphics/Camera.hpp +++ b/src/graphics/Camera.hpp @@ -34,15 +34,10 @@ public: const world::Body &Reference() const noexcept { return *ref; } Camera &Reference(const world::Body &) noexcept; - /// standing on given surface, with pos.z being elevation over NN - /// looking at given coordinates - Camera &FirstPerson(int surface, const glm::vec3 &pos, const glm::vec3 &at) noexcept; - /// looking straight down at surface from above - 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); + /// 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; }