From 27d53f563e5f410c33d8f4bb8288771ea4518a90 Mon Sep 17 00:00:00 2001
From: joni <johnfshaughnessy@gmail.com>
Date: Fri, 13 Jul 2018 13:35:11 -0700
Subject: [PATCH] Remove reverse-z entities

---
 src/components/cursor-controller.js | 2 +-
 src/hub.html                        | 9 +++------
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/components/cursor-controller.js b/src/components/cursor-controller.js
index e0dda6f0b..38be846de 100644
--- a/src/components/cursor-controller.js
+++ b/src/components/cursor-controller.js
@@ -65,7 +65,7 @@ AFRAME.registerComponent("cursor-controller", {
         const rayObject = this.data.rayObject.object3D;
         rayObjectRotation.setFromRotationMatrix(rayObject.matrixWorld);
         this.direction
-          .set(0, 0, 1)
+          .set(0, 0, -1)
           .applyQuaternion(rayObjectRotation)
           .normalize();
         this.origin.setFromMatrixPosition(rayObject.matrixWorld);
diff --git a/src/hub.html b/src/hub.html
index 3438ab9a0..740c3807f 100644
--- a/src/hub.html
+++ b/src/hub.html
@@ -40,15 +40,15 @@
         vr-mode-ui="enabled: false"
         pinch-to-move
         input-configurator="
-                  gazeCursorRayObject: #player-camera-reverse-z;
+                  gazeCursorRayObject: #player-camera;
                   cursorController: #cursor-controller;
                   gazeTeleporter: #gaze-teleport;
                   camera: #player-camera;
                   playerRig: #player-rig;
                   leftController: #player-left-controller;
-                  leftControllerRayObject: #player-left-controller-reverse-z;
+                  leftControllerRayObject: #player-left-controller;
                   rightController: #player-right-controller;
-                  rightControllerRayObject: #player-right-controller-reverse-z;"
+                  rightControllerRayObject: #player-right-controller;"
     >
 
         <a-assets>
@@ -326,7 +326,6 @@
                     hitOpacity: 0.3;
                     missOpacity: 0.2;"
             ></a-entity>
-            <a-entity id="player-camera-reverse-z" rotation="0 180 0"></a-entity>
           </a-entity>
 
           <a-entity
@@ -348,7 +347,6 @@
               mixin="controller-super-hands"
               controls-shape-offset
           >
-            <a-entity id="player-left-controller-reverse-z" rotation="0 180 0"></a-entity>
           </a-entity>
 
           <a-entity
@@ -370,7 +368,6 @@
               mixin="controller-super-hands"
               controls-shape-offset
           >
-            <a-entity id="player-right-controller-reverse-z" rotation="0 180 0"></a-entity>
           </a-entity>
 
           <a-entity gltf-model-plus="inflate: true;"
-- 
GitLab