Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.42k forks source link

Force a matrix world update when audio is created #6463

Closed keianhzo closed 8 months ago

keianhzo commented 8 months ago

Related https://github.com/MozillaReality/hubs-blender-exporter/issues/240

Invisible audio components (by disabling controls or adding the visible component to false) don't get to correctly set their world matrix. This PR forces a world matrix update when the audio has been loaded to make sure that the audio is correctly positioned.