Not updating old camera twice anymore.

This commit is contained in:
Steffen Fündgens 2015-02-27 12:55:06 +01:00
parent 5cb28c8440
commit 8e34b56f48

View File

@ -42,7 +42,6 @@ void Camera::setIsPhysicsCamera(bool val)
usePhysicsCamera = val;
}
void Camera::updateRotation(glm::vec2 rotation) {
this->rotation += rotation;
if((this->rotation.x + rotation.x) >= 1.57f) {
this->rotation.x = 1.57;
this->rotation.y += rotation.y;