Skip to content

Commit 3ef7474

Browse files
committed
Remove unused orientationOffset from the controls components
1 parent 1b9fdf6 commit 3ef7474

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
@@ -39,7 +39,6 @@ module.exports.Component = registerComponent('generic-tracked-controller-control
3939
hand: {default: ''}, // This informs the degenerate arm model.
4040
defaultModel: {default: true},
4141
defaultModelColor: {default: 'gray'},
42-
orientationOffset: {type: 'vec3'},
4342
disabled: {default: false}
4443
},
4544

@@ -133,7 +132,6 @@ module.exports.Component = registerComponent('generic-tracked-controller-control
133132
el.setAttribute('tracked-controls', {
134133
hand: data.hand,
135134
idPrefix: GAMEPAD_ID_PREFIX,
136-
orientationOffset: data.orientationOffset,
137135
iterateControllerProfiles: true
138136
});
139137
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
@@ -45,8 +45,7 @@ var INPUT_MAPPING_WEBXR = {
4545
module.exports.Component = registerComponent('hp-mixed-reality-controls', {
4646
schema: {
4747
hand: {default: 'none'},
48-
model: {default: true},
49-
orientationOffset: {type: 'vec3'}
48+
model: {default: true}
5049
},
5150

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

133131
// Load model.

src/components/magicleap-controls.js

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

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

128126
// Load model.

src/components/oculus-go-controls.js

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

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

0 commit comments

Comments
 (0)