Browse Source

fix gearvr

Nikolay Suslov 4 years ago
parent
commit
f4c519f8e3
2 changed files with 4 additions and 3 deletions
  1. 3 2
      public/vwf/model/aframe/addon/aframe-components.js
  2. 1 1
      public/vwf/view/aframe.js

+ 3 - 2
public/vwf/model/aframe/addon/aframe-components.js

@@ -29,7 +29,8 @@ AFRAME.registerComponent('scene-utils', {
             if (driver.threeDoFMobile || _app.config.d3DoF ) {
                 driver.threeDoF = true;
 
-                 vwf_view.kernel.callMethod(avatarID, "updateYPositionForXR", [0.0]);
+                 //vwf_view.kernel.callMethod(avatarID, "updateYPositionForXR", [0.0]);
+
                 //avatarEl.setAttribute('position', '0 1.6 0');
                 // if (AFRAME.utils.device.isGearVR()){  
                 // }
@@ -62,7 +63,7 @@ AFRAME.registerComponent('scene-utils', {
                 driver.threeDoF = false;
                 //avatarEl.setAttribute('position', '0 0 0');
 
-                vwf_view.kernel.callMethod(avatarID, "updateYPositionForXR", [-1.6]);
+                //vwf_view.kernel.callMethod(avatarID, "updateYPositionForXR", [-1.6]);
 
             } else if (driver.sixDoFMobile || driver.sixDoFDesktop || _app.config.d6DoF ) {
                 driver.sixDoF = false;

+ 1 - 1
public/vwf/view/aframe.js

@@ -490,7 +490,7 @@ define(["module", "vwf/view"], function (module, view) {
 
             if(self.hmd){
                 if(self.threeDoF )
-                    updateHandControllerVR('gearvr-', '#gearvrcontrol');
+                        updateHandControllerVR('gearvr-', '#gearvrcontrol');
 
                 if(this.sixDoF ) {
                         updateHandControllerVR('wmrvr-right-', '#wmrvrcontrolright');