<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/Audio/DistanceAttenuation/rolloff(factor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation5AudioO19DistanceAttenuationO7rolloffyAESd_tcAEmF"
  },
  "title" : "Audio.DistanceAttenuation.rolloff(factor:)"
}
-->

# Audio.DistanceAttenuation.rolloff(factor:)

A standard geometric model for attenuating audio intensity naturally with distance, using a specified loss strength factor.

```
case rolloff(factor: Double)
```

## Parameters

`factor`

The attenuation model’s loss strength factor in the range of `[0, Double.infinity]`.

## Discussion

The case’s default value is `1.0`, which attenuates spatial audio as the listener moves away from the source, similar to real-world physics.
You can increase or decrease this effect by changing `factor` to other values.
For example:

- `0.5` reduces the effect by 50%
- `2.0` doubles the effect
- `0.0` completely disables attenuation

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)