---
title: meshCollidersUpdateInterval
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/clothsimulationcomponent/meshcollidersupdateinterval
---

# meshCollidersUpdateInterval

The number of time steps between updates to the mesh colliders in the simulation.

## Declaration

```swift
var meshCollidersUpdateInterval: Int { get set }
```

## Discussion

Discussion In this context, a mesh collider update is referring to when the collider applies and detects collisions. A higher interval results in worse collision detection but better performance and power. The mesh colliders are guaranteed to update on the last time step of each update. This ensures that all collisions have been applied right before the next frame is rendered. As example, the mesh colliders will update on the following steps if the interval is 2 and the update is advancing 8 time steps. Step 1: Mesh colliders update. Step 2: Step 3: Step 4: Mesh colliders update. Step 5: Step 6: Step 7: Mesh colliders update. Step 8: Mesh colliders update (guaranteed on last step). Must be non-negative; negative values are clamped to zero. If zero, the mesh colliders will update every time step.

## See Also

### Controlling simulation timing

- [timeStep](realitykit/clothsimulationcomponent/timestep.md)
- [maximumStepsPerUpdate](realitykit/clothsimulationcomponent/maximumstepsperupdate-swift.property.md)
- [ClothSimulationComponent.MaximumStepsPerUpdate](realitykit/clothsimulationcomponent/maximumstepsperupdate-swift.struct.md)
- [speedLimit](realitykit/clothsimulationcomponent/speedlimit-swift.property.md)
- [ClothSimulationComponent.SpeedLimit](realitykit/clothsimulationcomponent/speedlimit-swift.struct.md)
