Play the equip/drop sound in metaverse_components/wear.js instead of character-sfx.js
(Should we just only play the equip sound for localPlayer?)
Because some apps like sword do not have the file index.js to play the sword whoosh, can we create a metaverse components use for the app to handle the sound event?
In animation-baker.js, baked the sword velocity to slash animation. And play the sword grunt and emit meleewhoosh event according to the velocity. (instead of using constant)
And for the redo sword animation, we haven't had the new sword animation so I just change sword animation to animationCombo in this PR: https://github.com/webaverse/sword/pull/2
metaverse_components/wear.js
instead ofcharacter-sfx.js
(Should we just only play the equip sound for localPlayer?)index.js
to play the sword whoosh, can we create a metaverse componentsuse
for the app to handle the sound event?Sibling: https://github.com/webaverse/sword/pull/2
related: https://github.com/webaverse/app/issues/3659
Result:
https://user-images.githubusercontent.com/60634884/187808725-518c0de0-fa6d-43c2-aff2-49e407a16fe5.mp4