@@ -5,8 +5,8 @@ var bind = require('../utils/bind');
5
5
var trackedControlsUtils = require ( '../utils/tracked-controls' ) ;
6
6
var checkControllerPresentAndSetup = trackedControlsUtils . checkControllerPresentAndSetup ;
7
7
8
- var LEFT_HAND_MODEL_URL = 'https://cdn.aframe.io/controllers/oculus-hands/unity /left.glb' ;
9
- var RIGHT_HAND_MODEL_URL = 'https://cdn.aframe.io/controllers/oculus-hands/unity /right.glb' ;
8
+ var LEFT_HAND_MODEL_URL = 'https://cdn.aframe.io/controllers/oculus-hands/v3 /left.glb' ;
9
+ var RIGHT_HAND_MODEL_URL = 'https://cdn.aframe.io/controllers/oculus-hands/v3 /right.glb' ;
10
10
11
11
var BONE_PREFIX = {
12
12
left : 'b_l_' ,
@@ -47,14 +47,17 @@ var BONE_MAPPING = {
47
47
'thumb-phalanx-proximal' : 'thumb2' ,
48
48
'thumb-phalanx-distal' : 'thumb3' ,
49
49
'thumb-tip' : 'thumb_null' ,
50
+ 'index-finger-metacarpal' : 'index0' ,
50
51
'index-finger-phalanx-proximal' : 'index1' ,
51
52
'index-finger-phalanx-intermediate' : 'index2' ,
52
53
'index-finger-phalanx-distal' : 'index3' ,
53
54
'index-finger-tip' : 'index_null' ,
55
+ 'middle-finger-metacarpal' : 'middle0' ,
54
56
'middle-finger-phalanx-proximal' : 'middle1' ,
55
57
'middle-finger-phalanx-intermediate' : 'middle2' ,
56
58
'middle-finger-phalanx-distal' : 'middle3' ,
57
59
'middle-finger-tip' : 'middle_null' ,
60
+ 'ring-finger-metacarpal' : 'ring0' ,
58
61
'ring-finger-phalanx-proximal' : 'ring1' ,
59
62
'ring-finger-phalanx-intermediate' : 'ring2' ,
60
63
'ring-finger-phalanx-distal' : 'ring3' ,
@@ -341,7 +344,7 @@ module.exports.Component = registerComponent('hand-tracking-controls', {
341
344
342
345
onModelLoaded : function ( ) {
343
346
var mesh = this . mesh = this . el . getObject3D ( 'mesh' ) . children [ 0 ] ;
344
- var skinnedMesh = this . skinnedMesh = mesh . children [ 24 ] ;
347
+ var skinnedMesh = this . skinnedMesh = mesh . children [ 30 ] ;
345
348
if ( ! this . skinnedMesh ) { return ; }
346
349
this . bones = skinnedMesh . skeleton . bones ;
347
350
this . el . removeObject3D ( 'mesh' ) ;
0 commit comments