]> git.plutz.net Git - serve0/commitdiff
lower default view
authorpaul <paul@plutz.net>
Sun, 3 Jun 2018 23:21:31 +0000 (23:21 +0000)
committerpaul <paul@plutz.net>
Sun, 3 Jun 2018 23:21:31 +0000 (23:21 +0000)
svn path=/trunk/; revision=205

static/stereoview.js

index dd9b4e3a6818a3b11624f6dbcc082aa58606b0c9..50863d5533f5219f0db0aff3362d36e2b8a4ffc6 100644 (file)
@@ -100,7 +100,7 @@ function stereoview(layout, video) {
       ty = 0; y.forEach( function(n, i){ ty += n; } ); ty /= inertia;
       tz = 0; z.forEach( function(n, i){ tz += n; } ); tz /= inertia;
 
-      pitch =   Math.asin((tz / 9.81 > 1)?1:(tz/9.81)) / Math.PI * 180;
+      pitch =   Math.asin((tz / 9.81 > 1)?1:(tz/9.81)) / Math.PI * 180 + 22.5;
       roll  = - Math.asin((ty / 9.81 > 1)?1:(ty/9.81)) / Math.PI * 180;
       yaw   = (yaw + ty) % 360;
     };