c-frame / aframe-extras

Add-ons and helpers for A-Frame VR.
https://c-frame.github.io/aframe-extras/examples/
MIT License
967 stars 309 forks source link

Oculus touch controllers appear overhead #215

Closed dritsher closed 6 years ago

dritsher commented 6 years ago

I have tried to pare this down to the simplest case. I think I may be missing a tag on my handLeft and handRight. I am having two issues that I can't seem to solve.

1) When viewed on an Oculus through Firefox, the models of my touch controllers appear overhead. 2) When I use the Oculus joystick to navigate, the camera moves properly, but the touch controllers remain in place and do not move with the camera.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
<meta name="description" content="Hello, World! • A-Frame">
    <script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
    <script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v3.13.1/dist/aframe-extras.min.js"></script>

 </head>
<body>
<a-scene cursor="rayOrigin: mouse">

<a-entity id="player" position="2 2 2">
    <a-entity  id="Camera" camera="userHeight:1.6" universal-controls></a-entity>
    <a-entity id="leftHand" laser-controls="hand: left" raycaster="objects: .clickable" hand-controller>
        <a-entity mixin="marker" rotation="-45 0 0" position="0 -0.1 -0.1"></a-entity>
        <a-entity id="labelText" rotation="-45 0 0" position="0 -0.1 -0.09" geometry="primitive: plane; width: auto; height: auto" visible="false" material="color: #eee" text="color: blue; align: center; value: [This is a door]; width: 0.5; "></a-entity> 
    </a-entity>
    <a-entity id="rightHand" laser-controls="hand: right" raycaster="objects: .clickable" line="color: #118A7E"></a-entity>
</a-entity>

<a-entity position="0 2.5 0" geometry="" material="color:#ff4e48" id="House Main Wing"></a-entity>
</a-scene>
</body>
</html>
donmccurdy commented 6 years ago

A lot has changed with A-Frame 0.8.0 and extras v4, are you still able to reproduce this? Note updated controls docs:

https://github.com/donmccurdy/aframe-extras/tree/master/src/controls#usage

and that userHeight: 1.6 no longer exists.

dritsher commented 6 years ago

It is working properly now. Thanks!

On Apr 22, 2018, at 7:04 PM, Don McCurdy notifications@github.com wrote:

A lot has changed with A-Frame 0.8.0 and extras v4, are you still able to reproduce this? Note updated controls docs:

https://github.com/donmccurdy/aframe-extras/tree/master/src/controls#usage https://github.com/donmccurdy/aframe-extras/tree/master/src/controls#usage and that userHeight: 1.6 no longer exists.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/donmccurdy/aframe-extras/issues/215#issuecomment-383434194, or mute the thread https://github.com/notifications/unsubscribe-auth/AMdwazg8c8kn8TQdUltQLHb_1mgl1ozFks5trTbIgaJpZM4Saqho.