gftruj / aframe-hand-tracking-controls-extras

a-frame hand tracking extras
MIT License
48 stars 15 forks source link

not able to teleport after using hand-tracking-controls #3

Closed addy1997 closed 1 year ago

addy1997 commented 1 year ago

Hi @gftruj,

I am trying to teleport in my VR scene using the blink-controls component (an alternative to the teleport controls component) along with the hand-tracking-controls component.

I can't see the arc generating anywhere in the VR scene except the blue-colored ring that appears on the ground. I am not teleported anywhere.

I tried something like this, but it works partially (shown in the video below). The code snippet can be found below:

<a-entity id="leftHand" hand-tracking-controls="hand: left; modelColor: #ADD8E6; modelStyle: mesh" blink-controls="snapTurn:false; startEvents:pinchstarted; endEvents:pinchended; cameraRig: #camera-control; teleportOrigin: #camera-head; curveHitColor: #99ff99; curveMissColor: #ff0000; curveNumberPoints: 15; curveLineWidth: 0.05; curveShootingSpeed: 5; defaultPlaneSize: 100; landingMaxAngle: 45;"></a-entity>`
<a-entity id="rightHand" hand-tracking-controls="hand: right; modelColor: #ADD8E6; modelStyle: mesh" blink-controls="snapTurn:false; startEvents:pinchstarted; endEvents:pinchended; cameraRig: #camera-control; teleportOrigin: #camera-head; curveHitColor: #99ff99; curveMissColor: #ff0000; curveNumberPoints: 15; curveLineWidth: 0.05; curveShootingSpeed: 5; defaultPlaneSize: 100; landingMaxAngle: 45;"></a-entity>

https://github.com/jure/aframe-blink-controls/assets/29406906/3dba55a8-4787-4757-95ee-a05b41b25f57

Please could you help?

Thanks

gftruj commented 1 year ago

Hi, I'm currently AFK, I'll look into it (and the PR) next week :)

addy1997 commented 1 year ago

Hi @gftruj,

can you please have a look at this issue?

gftruj commented 1 year ago

Two things got deprecated, the navigation example should be working now:

https://github.com/gftruj/aframe-hand-tracking-controls-extras/assets/17348360/8e97a1ae-c470-430c-aa15-d8eb426483ba

changed the filename to aframe-hand-tracking-controls-extras-full.js, need to revamp the whole thing a bit 😅