Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove reverse-z entities #456

Merged
merged 1 commit into from
Jul 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/cursor-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 3 additions & 6 deletions src/hub.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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;"
Expand Down