diff --git a/src/components/cursor-controller.js b/src/components/cursor-controller.js index e0dda6f0bce57127c09ef5580bf84a497ad2caf8..38be846de6e7f68fbf937be2937459a445099555 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 e188ce44ec55f4131c8af1988fa2265c4e05f612..091d7076284d86df92bd64921fb92072314bae2d 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> @@ -320,7 +320,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 @@ -342,7 +341,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 @@ -364,7 +362,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;"