| static DtVisibilitySoundConfig makVrv::DtVisibilitySoundConfig::fromParams |
( |
const std::map< std::string, std::string > & |
params | ) |
|
|
static |
Build a config from a key-value parameter map.
Recognised keys: "clearVisibilityMeters", "onsetRampMeters", "crossfadeWidthMeters", "maxRangeMeters", "tierN.source", "tierN.peakFrom", "tierN.peakTo", "tierN.gain" (N = 0, 1, 2, ...). Any absent key falls back to the corresponding makeDefault() value.
- Parameters
-
| float makVrv::DtVisibilitySoundConfig::clearVisibilityMeters = 10000.0f |
Visibility in metres at or above which the behavior is completely silent.
| float makVrv::DtVisibilitySoundConfig::onsetRampMeters = 500.0f |
Width in metres of the linear onset ramp for the first tier.
| float makVrv::DtVisibilitySoundConfig::crossfadeWidthMeters = 1500.0f |
Total crossfade zone width in metres at each tier boundary.
Ordered tiers, lightest first (clearest visibility first).
| float makVrv::DtVisibilitySoundConfig::maxRangeMeters = 0.0f |
Maximum distance in metres from the listener at which this behavior can activate. When greater than zero, isActive() returns false for any entity whose scene-object position is farther than this distance from the current audio listener. Set to 0 (default) to disable the proximity gate and use global visibility only.
The documentation for this struct was generated from the following file: