Setter for camera position

This commit is contained in:
saschawillems 2016-12-20 22:25:17 +01:00
parent ef26748142
commit b08e9f4074

View file

@ -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;