diff --git a/src/Viewer/sview.cxx b/src/Viewer/sview.cxx index 9a69e1ad9..5e9bcc6e9 100644 --- a/src/Viewer/sview.cxx +++ b/src/Viewer/sview.cxx @@ -144,11 +144,11 @@ struct SviewPosDir /* Generic damping support. Improved version of class in view.hxx and view.cxx. We model dx/dt = (target-current)/damping_time, do damping_time is time for -value to change by a factor or e. */ +value to change by a factor of e. */ struct Damping { /* If m_wrap_max is non-zero, we wrap to ensure values are always between 0 - and m_wrap_max. E.g. use m_wrap_max=360 for an angle. */ + and m_wrap_max. E.g. use m_wrap_max=360 for an angle in degrees. */ Damping(double damping_time, double wrap_max=0, double current=0) : m_damping_time(damping_time), @@ -1353,7 +1353,10 @@ struct SviewViewEyeTarget : SviewView step->getDoubleValue("heading"), step->getDoubleValue("pitch"), step->getDoubleValue("roll"), - step->getBoolValue("fixed") + step->getBoolValue("fixed"), + step->getDoubleValue("damping-heading"), + step->getDoubleValue("damping-pitch"), + step->getDoubleValue("damping-roll") )); } else if (!strcmp(type, "rotate-current-view")) { diff --git a/src/Viewer/sview.hxx b/src/Viewer/sview.hxx index ef2f2b0c5..26555f1ab 100644 --- a/src/Viewer/sview.hxx +++ b/src/Viewer/sview.hxx @@ -132,6 +132,9 @@ An sview-step is: fixed: If false (the default), mouse drags modify heading and pitch. + damping-time-heading, damping-time-pitch, damping-time-roll: + Damping times for heading, pitch and roll; zero gives no + damping. See 'agl' below for details of damping. "rotate-current-view": Rotate view direction by current /sim/current-view/.... "rotate-to-target":