mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
fixes
This commit is contained in:
parent
5ac51a6fa4
commit
a1776e015e
2 changed files with 2 additions and 3 deletions
|
|
@ -21,10 +21,9 @@ void Camera::updateVectors(){
|
|||
}
|
||||
|
||||
void Camera::rotate(float x, float y, float z){
|
||||
rotation = glm::rotate(rotation, z, glm::vec3(0,0,1));
|
||||
rotation = glm::rotate(rotation, y, glm::vec3(0,1,0));
|
||||
rotation = glm::rotate(rotation, x, glm::vec3(1,0,0));
|
||||
|
||||
rotation = glm::rotate(rotation, z, glm::vec3(0,0,1));
|
||||
updateVectors();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue