---
title: sourceCollider
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/clothbodycomponent/colliderbinding-swift.struct/sourcecollider
---

# sourceCollider

The entity containing the mesh-shaped collider that the body will bind to.

## Declaration

```swift
var sourceCollider: Entity?
```

## Discussion

Discussion For the binding to be successful, the entity must contain a ClothColliderComponent with a mesh collision shape.

## See Also

### Binding the collider

- [isEnabled](realitykit/clothbodycomponent/colliderbinding-swift.struct/isenabled.md)
