Skip to content

Commit 88e8db1

Browse files
committed
Use gripSpace for oculus touch controller pose
1 parent c9e4172 commit 88e8db1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/oculus-touch-controls.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ module.exports.Component = registerComponent('oculus-touch-controls', {
277277
hand: data.hand,
278278
orientationOffset: data.orientationOffset,
279279
handTrackingEnabled: false,
280-
iterateControllerProfiles: true
280+
iterateControllerProfiles: true,
281+
space: 'gripSpace'
281282
});
282283
this.loadModel(controller);
283284
},

src/components/tracked-controls-webxr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports.Component = registerComponent('tracked-controls-webxr', {
1717
handTrackingEnabled: {default: false},
1818
index: {type: 'int', default: -1},
1919
iterateControllerProfiles: {default: false},
20-
space: {type: 'string', oneOf: ['targetRaySpace', 'gripSpace'], default: 'targetRaySpace'}
20+
space: {type: 'string', oneOf: ['targetRaySpace', 'gripSpace'], default: 'gripSpace'}
2121
},
2222

2323
init: function () {

0 commit comments

Comments
 (0)