> Documentation index: https://developer.android.com/reference/llms.txt

# DistanceAttenuation.Natural

Artifact: [androidx.xr.scenecore:scenecore](https://developer.android.com/jetpack/androidx/releases/xr-scenecore.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/DistanceAttenuation.kt+class:androidx.xr.scenecore.DistanceAttenuation.Natural) Added in [1.1.0-alpha02](https://developer.android.com/jetpack/androidx/releases/xr-scenecore.md.txt#1.1.0-alpha02)

*** ** * ** ***


```
@RequiresSpatialApi(value = 4)
class DistanceAttenuation.Natural : DistanceAttenuation
```

<br />

*** ** * ** ***

Configures a natural-sounding rolloff curve.

| Throws |
|---|---|
| `IllegalArgumentException` | if the minDistance is less than 0.1 |

## Summary

| ### Public constructors |
|---|
| `Natural(minDistance: Float)` |

| ### Public functions |
|---|---|
| `open operator Boolean` | `equals(other: Any?)` |
| `open Int` | `hashCode()` |
| `open String` | `toString()` |

| ### Public properties |
|---|---|
| `Float` | `minDistance` Distance where attenuation begins (gain is 1.0). |

## Public constructors

### Natural

Added in [1.1.0-alpha02](https://developer.android.com/jetpack/androidx/releases/xr-scenecore.md.txt#1.1.0-alpha02)

```
Natural(minDistance: Float)
```

| Parameters |
|---|---|
| `minDistance: Float` | Distance where attenuation begins (gain is 1.0). Must be \>= 0.1. |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### minDistance

Added in [1.1.0-alpha02](https://developer.android.com/jetpack/androidx/releases/xr-scenecore.md.txt#1.1.0-alpha02)

```
val minDistance: Float
```

Distance where attenuation begins (gain is 1.0). Must be \>= 0.1.