From 9595b7aae5beb49d7d23c835567c8b43e146c562 Mon Sep 17 00:00:00 2001 From: Asha Date: Thu, 13 Apr 2017 15:39:02 +0800 Subject: [PATCH] cardboard motion bug fix. --- .../com/google/vrtoolkit/cardboard/sensors/HeadTracker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrlib/src/main/java/com/google/vrtoolkit/cardboard/sensors/HeadTracker.java b/vrlib/src/main/java/com/google/vrtoolkit/cardboard/sensors/HeadTracker.java index 1bffef2f..276b58d7 100644 --- a/vrlib/src/main/java/com/google/vrtoolkit/cardboard/sensors/HeadTracker.java +++ b/vrlib/src/main/java/com/google/vrtoolkit/cardboard/sensors/HeadTracker.java @@ -29,7 +29,7 @@ public class HeadTracker implements SensorEventListener { private final Display display; private final float[] ekfToHeadTracker = new float[16]; private final float[] sensorToDisplay = new float[16]; - private float displayRotation = 0.0F; + private float displayRotation = -1.0F; private final float[] neckModelTranslation = new float[16]; private final float[] tmpHeadView = new float[16]; private final float[] tmpHeadView2 = new float[16];