From 3f5b8ee9da46586eca7480db7ba3aa2832b1f5bf Mon Sep 17 00:00:00 2001 From: Liny Date: Wed, 13 Jul 2011 15:08:43 -0700 Subject: [PATCH] Allow camera to go (almost) all the way up (179 degrees, cant do 180 or the camera wll freek out) and (almost) all the way down (down to 1 degree, cant look straight down for same reason), implements FIRE-2065 --- indra/newview/llagent.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index fd787eb6ce..15e68dec9a 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -1062,18 +1062,11 @@ F32 LLAgent::clampPitchToLimits(F32 angle) LLVector3 skyward = getReferenceUpVector(); F32 look_down_limit; - F32 look_up_limit = 10.f * DEG_TO_RAD; + F32 look_up_limit = 1.f * DEG_TO_RAD; F32 angle_from_skyward = acos( mFrameAgent.getAtAxis() * skyward ); - if (isAgentAvatarValid() && gAgentAvatarp->isSitting()) - { - look_down_limit = 130.f * DEG_TO_RAD; - } - else - { - look_down_limit = 170.f * DEG_TO_RAD; - } + look_down_limit = 179.f * DEG_TO_RAD; // clamp pitch to limits if ((angle >= 0.f) && (angle_from_skyward + angle > look_down_limit))