Setter for camera position
This commit is contained in:
parent
ef26748142
commit
b08e9f4074
1 changed files with 6 additions and 0 deletions
|
|
@ -80,6 +80,12 @@ public:
|
||||||
matrices.perspective = glm::perspective(glm::radians(fov), aspect, znear, zfar);
|
matrices.perspective = glm::perspective(glm::radians(fov), aspect, znear, zfar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setPosition(glm::vec3 position)
|
||||||
|
{
|
||||||
|
this->position = position;
|
||||||
|
updateViewMatrix();
|
||||||
|
}
|
||||||
|
|
||||||
void setRotation(glm::vec3 rotation)
|
void setRotation(glm::vec3 rotation)
|
||||||
{
|
{
|
||||||
this->rotation = rotation;
|
this->rotation = rotation;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue