# sm.world.getDirtySpheres

Returns an array of tables representing spheres where something has changed in the world.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.world.getDirtySpheres( position?, radius? )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.world.md#getdirtyspheres)

The optional position and radius parameters will construct a sphere, and use it as a filter to only show results that intersect that sphere.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `position` *(optional)* | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The world position of the sphere. (Optional) |
| `radius` *(optional)* | number | The radius of the sphere. (Optional) |

**Returns:**

| Type | Description |
| --- | --- |
| table | The table of tables. \{ \{center=[Vec3](../Game-Script-Environment/Userdata/Vec3.md), radius=number\}, ..\} |
