diff --git a/base/camera.hpp b/base/camera.hpp index bac67c6b..c6c1a51b 100644 --- a/base/camera.hpp +++ b/base/camera.hpp @@ -80,6 +80,12 @@ public: matrices.perspective = glm::perspective(glm::radians(fov), aspect, znear, zfar); } + void setPosition(glm::vec3 position) + { + this->position = position; + updateViewMatrix(); + } + void setRotation(glm::vec3 rotation) { this->rotation = rotation;