Spatial sound: Sound does not follow a TransformNode, but a Mesh

Hi all!

Moving around a TransformNode that is attached to a Sound does not deliver the expected attenuation by distance from the camera. It works with a Mesh though.


My misunderstanding of the API??

. J

It’s not you, apparently Sound still expects a mesh here:

Here is a playground with the original _onRegisterAfterWorldMatrixUpdate commented out, and a modified version that fixes the bug:

1 Like

And a PR:


Thanks a lot!

1 Like