Skip to content

Commit d2b55ae

Browse files
committed
Remove unused orientationOffset from the controls components
1 parent a968757 commit d2b55ae

17 files changed

+16
-43
lines changed

docs/components/magicleap-controls.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ mappings, events, and Magic Leap controller model/
3131
|----------------------|----------------------------------------------------|----------------------|
3232
| hand | The hand that will be tracked (e.g., right, left). | |
3333
| model | Whether the Magic Leap controller model is loaded. | true |
34-
| orientationOffset | Offset to apply to model orientation. | x: 0, y: 0, z: 0 |
3534

3635
## Events
3736

docs/components/oculus-touch-controls.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ mappings, events, and a Touch controller model.
2626
|----------------------|----------------------------------------------------|----------------------|
2727
| hand | The hand that will be tracked (i.e., right, left). | left |
2828
| model | Whether the Touch controller model is loaded. | true |
29-
| orientationOffset | Offset to apply to model orientation. | x: 0, y: 0, z: 0 |
3029

3130
## Events
3231

docs/components/tracked-controls.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ so using idPrefix for Vive / OpenVR controllers is recommended.
4646
| idPrefix | Selects the controller from the Gamepad API using prefix match. | |
4747
| headElement | Head element for arm model if needed (if not active camera). | |
4848
| hand | Which hand to use, if arm model is needed. (left negates X) | right |
49-
| orientationOffset | Offset to apply to model orientation. | x: 0, y: 0, z: 0 |
5049
| space | Specifies whether to use targetRayspace or gripSpace to determine controller pose. | targetRaySpace |
5150

5251
## Events

docs/components/vive-controls.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ buttons (trigger, grip, menu, system) and trackpad.
2929
| buttonHighlightColor | Button colors when pressed and active. | #22D1EE (light blue) |
3030
| hand | The hand that will be tracked (i.e., right, left). | left |
3131
| model | Whether the Vive controller model is loaded. | true |
32-
| orientationOffset | Offset to apply to model orientation. | x: 0, y: 0, z: 0 |
3332

3433
## Events
3534

docs/components/vive-focus-controls.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ and/or pressed buttons (trackpad, trigger).
3434
| buttonHighlightColor | Button colors when pressed and active. | #FFFFFF |
3535
| hand | The hand that will be tracked (e.g., right, left). | |
3636
| model | Whether the Vive Focus controller model is loaded. | true |
37-
| orientationOffset | Offset to apply to model orientation. | x: 0, y: 0, z: 0 |
3837

3938
## Events
4039

docs/introduction/interactions-and-controllers.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,7 @@ AFRAME.registerComponent('custom-controls', {
454454
var el = this.el;
455455
var controlConfiguration = {
456456
hand: hand,
457-
model: false,
458-
orientationOffset: {x: 0, y: 0, z: hand === 'left' ? 90 : -90}
457+
model: false
459458
};
460459

461460
// Build on top of controller components.

src/components/generic-tracked-controller-controls.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ module.exports.Component = registerComponent('generic-tracked-controller-control
3838
hand: {default: ''}, // This informs the degenerate arm model.
3939
defaultModel: {default: true},
4040
defaultModelColor: {default: 'gray'},
41-
orientationOffset: {type: 'vec3'},
4241
disabled: {default: false}
4342
},
4443

@@ -134,7 +133,6 @@ module.exports.Component = registerComponent('generic-tracked-controller-control
134133
el.setAttribute('tracked-controls', {
135134
hand: data.hand,
136135
idPrefix: GAMEPAD_ID_PREFIX,
137-
orientationOffset: data.orientationOffset,
138136
iterateControllerProfiles: true
139137
});
140138
if (!this.data.defaultModel) { return; }

src/components/hp-mixed-reality-controls.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ var INPUT_MAPPING_WEBXR = {
4444
module.exports.Component = registerComponent('hp-mixed-reality-controls', {
4545
schema: {
4646
hand: {default: 'none'},
47-
model: {default: true},
48-
orientationOffset: {type: 'vec3'}
47+
model: {default: true}
4948
},
5049

5150
mapping: INPUT_MAPPING_WEBXR,
@@ -125,8 +124,7 @@ module.exports.Component = registerComponent('hp-mixed-reality-controls', {
125124
// TODO: verify expected behavior between reserved prefixes.
126125
idPrefix: GAMEPAD_ID,
127126
hand: data.hand,
128-
controller: this.controllerIndex,
129-
orientationOffset: data.orientationOffset
127+
controller: this.controllerIndex
130128
});
131129

132130
// Load model.

src/components/magicleap-controls.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ var INPUT_MAPPING_WEBXR = {
3939
module.exports.Component = registerComponent('magicleap-controls', {
4040
schema: {
4141
hand: {default: 'none'},
42-
model: {default: true},
43-
orientationOffset: {type: 'vec3'}
42+
model: {default: true}
4443
},
4544

4645
mapping: INPUT_MAPPING_WEBXR,
@@ -120,8 +119,7 @@ module.exports.Component = registerComponent('magicleap-controls', {
120119
// TODO: verify expected behavior between reserved prefixes.
121120
idPrefix: GAMEPAD_ID_COMPOSITE,
122121
hand: data.hand,
123-
controller: this.controllerIndex,
124-
orientationOffset: data.orientationOffset
122+
controller: this.controllerIndex
125123
});
126124

127125
// Load model.

src/components/oculus-go-controls.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ module.exports.Component = registerComponent('oculus-go-controls', {
3939
buttonColor: {type: 'color', default: '#FFFFFF'},
4040
buttonTouchedColor: {type: 'color', default: '#BBBBBB'},
4141
buttonHighlightColor: {type: 'color', default: '#7A7A7A'},
42-
model: {default: true},
43-
orientationOffset: {type: 'vec3'}
42+
model: {default: true}
4443
},
4544

4645
mapping: INPUT_MAPPING,
@@ -109,8 +108,7 @@ module.exports.Component = registerComponent('oculus-go-controls', {
109108
var data = this.data;
110109
el.setAttribute('tracked-controls', {
111110
hand: data.hand,
112-
idPrefix: GAMEPAD_ID_PREFIX,
113-
orientationOffset: data.orientationOffset
111+
idPrefix: GAMEPAD_ID_PREFIX
114112
});
115113
if (!this.data.model) { return; }
116114
this.el.setAttribute('gltf-model', OCULUS_GO_CONTROLLER_MODEL_URL);

0 commit comments

Comments
 (0)