Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
195 stars 9 forks source link

Player talking distance #882

Closed Beaned2000 closed 3 years ago

Beaned2000 commented 4 years ago

I'd love to see the player talking distance be something we can change in the session menu. Currently the distance of player voice is very far in neos. i know we have things like shout and whisper but having everyone in a whisperbubble isn't a good option to limit the range

shiftyscales commented 3 years ago

This can now be set on a per-avatar or per-world basis by use of the AvatarAudioConfiguration component, and the AutoInject reference on CommonAvatarBuilder introduced in 2020.11.23.1311/2020.11.23.1360.

- Added DistanceSpace for AudioOutput, which allows switching the space of the distance metrics to Local from Global (based on request by @Shifty | Quality Control Lead, @H3BO3 and others)
-- This will make the MinDistance and MaxDistance scale with the global scale of the Slot it's on
-- You can use new MinScale and MaxScale fields to clamp the global scale, so the distances will stop scaling at certain point

- Added AvatarAudioConfiguration component (under Users/Common Avatar System/Audio) which provides voice mode configuration if placed within user's hierarchy (based on request by @ChrisWarner103 (DelVR))
-- This allows configuring all audio settings (range, falloff, spatialization...) for Normal, Shout and Broadcast. Mute and Whisper cannot be overriden.
-- All properties are driven locally. By driving the properties on this component you can divergently drive the voice properties of the user
-- Ensure there's only one instance on the avatar, when multiple instances are present, behavior will be undefined.
-- When not present, the default/per-avatar settings are used instead
-- Note that you cannot add this dynamically to the user, it needs to be present before avatar is equipped

- Added AutoInject reference to CommonAvatarBuilder, which will duplicate target slot and place it on each spawned user
-- It's placed right at the root of the user, at the same level as avatar and body nodes
-- You can use this to place AvatarAudioConfiguration on the users to create custom audio configuration in your worlds, as well as any custom LogiX (e.g. for game worlds)