Fixed a parenthesis.

This commit is contained in:
Faerbit 2014-12-15 11:53:31 +01:00
parent 55cc68a333
commit 6ff8f33017

View File

@ -235,7 +235,7 @@ void Graphics::resize(glm::uvec2 windowSize) {
}
glm::mat4 Graphics::buildViewMatrix(Level* level) {
//construct lookAt (cameraPosition = cameraCenter + cameraVector
//construct lookAt (cameraPosition = cameraCenter + cameraVector)
return glm::lookAt((level->getCameraCenter()->getPosition() + level->getCamera()->getVector()),
level->getCameraCenter()->getPosition(), glm::vec3(0.0f, 1.0f, 0.0f));
}