Skip to content
Snippets Groups Projects
Commit 5e60dc59 authored by netpro2k's avatar netpro2k
Browse files

Add note about audio-feedback hack

parent a3b620a0
No related branches found
No related tags found
No related merge requests found
...@@ -77,6 +77,8 @@ AFRAME.registerComponent("scale-audio-feedback", { ...@@ -77,6 +77,8 @@ AFRAME.registerComponent("scale-audio-feedback", {
}, },
onAudioFrequencyChange(e) { onAudioFrequencyChange(e) {
// TODO: come up with a cleaner way to handle this.
// bone's are "hidden" by scaling them with bone-visibility, without this we would overwrite that.
if (!this.el.object3D.visible) return; if (!this.el.object3D.visible) return;
const { minScale, maxScale } = this.data; const { minScale, maxScale } = this.data;
this.el.object3D.scale.setScalar(minScale + (maxScale - minScale) * e.detail.volume / 255); this.el.object3D.scale.setScalar(minScale + (maxScale - minScale) * e.detail.volume / 255);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment