Interface SoundRolloffFunction


public interface SoundRolloffFunction
Sound rolloff type.
Author:
Matthew Tropiano
  • Field Details

  • Method Details

    • getAttenuationScalar

      float getAttenuationScalar(float distanceScalar)
      Calculates the attenuation scalar given a distance scalar.
      Parameters:
      distanceScalar - the distance scalar (0 = less than reference distance min, 1 = greater than reference distance max).
      Returns:
      an attenuation scalar value (0 = fully attenuated, 1 = no attenuation).