Commit 26717eef authored by Janis Born's avatar Janis Born
Browse files

Camera:

* now also updates orientation after updating local coordinate system
  (prevents ControlCamera snapping back to old pitch/yaw after manually
  setting the camera position)
parent 084c5879
......@@ -55,6 +55,8 @@ void Camera::updateLocalCoordinateSystemByTarget(const glm::vec3& _up)
mForward = glm::normalize( mTarget - mPosition );
mRight = glm::normalize( glm::cross( mForward, _up) );
mUp = glm::normalize( glm::cross( mRight, mForward) );
updateOrientationByLocalCoordinateSystem();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment