Not updating old camera twice anymore.
This commit is contained in:
parent
5cb28c8440
commit
8e34b56f48
@ -42,7 +42,6 @@ void Camera::setIsPhysicsCamera(bool val)
|
|||||||
usePhysicsCamera = val;
|
usePhysicsCamera = val;
|
||||||
}
|
}
|
||||||
void Camera::updateRotation(glm::vec2 rotation) {
|
void Camera::updateRotation(glm::vec2 rotation) {
|
||||||
this->rotation += rotation;
|
|
||||||
if((this->rotation.x + rotation.x) >= 1.57f) {
|
if((this->rotation.x + rotation.x) >= 1.57f) {
|
||||||
this->rotation.x = 1.57;
|
this->rotation.x = 1.57;
|
||||||
this->rotation.y += rotation.y;
|
this->rotation.y += rotation.y;
|
||||||
|
Loading…
Reference in New Issue
Block a user