commit | d7fa647e6fa4e832381be5bdd03065f9ea35c3f1 | [log] [tgz] |
---|---|---|
author | Jim Shuma <jshuma@google.com> | Thu Oct 07 18:53:04 2010 -0700 |
committer | Jim Shuma <jshuma@google.com> | Fri Oct 08 14:16:08 2010 -0700 |
tree | 50072fc55b5cfb02b2392302ab0ff067079ef71d | |
parent | 594ff62c170509c0d69b30f4c2a5e71d4799a9c8 [diff] |
Adjust the bounds for how far books can sway Change-Id: I1e4a56cf8df900d7cfeccc9ab323e9af2c71a73b
diff --git a/carousel/java/com/android/ex/carousel/carousel.rs b/carousel/java/com/android/ex/carousel/carousel.rs index c265383..0f0cbb4 100644 --- a/carousel/java/com/android/ex/carousel/carousel.rs +++ b/carousel/java/com/android/ex/carousel/carousel.rs
@@ -449,8 +449,8 @@ float sway = 0.0f; if (enableSway) { - const float range = M_PI; // How far we can deviate from center, peak-to-peak - sway = M_PI * (logistic(-v * swaySensitivity) - 0.5f); + const float range = M_PI * 2./3.; // How far we can deviate from center, peak-to-peak + sway = range * (logistic(-v * swaySensitivity) - 0.5f); } return sway;