<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothSimulationComponent/FrictionOverridesCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C19SimulationComponentV27FrictionOverridesCollectionV"
  },
  "title" : "ClothSimulationComponent.FrictionOverridesCollection"
}
-->

# ClothSimulationComponent.FrictionOverridesCollection

A collection of materials pairs whose combined frictions are overridden.

```
struct FrictionOverridesCollection
```

## Topics

### Identifying overrides

[`struct Key`](/documentation/RealityKit/ClothSimulationComponent/FrictionOverridesCollection/Key)

The pair of materials whose combined frictions are overridden.

[`struct Value`](/documentation/RealityKit/ClothSimulationComponent/FrictionOverridesCollection/Value)

The combined frictions that override the frictions used between a pair of materials.

### Removing overrides

[`func removeOverride(forKey: ClothSimulationComponent.FrictionOverridesCollection.Key)`](/documentation/RealityKit/ClothSimulationComponent/FrictionOverridesCollection/removeOverride(forKey:))

### Subscripts

[`subscript(ClothSimulationComponent.FrictionOverridesCollection.Key) -> ClothSimulationComponent.FrictionOverridesCollection.Value?`](/documentation/RealityKit/ClothSimulationComponent/FrictionOverridesCollection/subscript(_:))

Accesses the friction override for the given material pair, returning `nil` if no override exists.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Collection`](/documentation/Swift/Collection)

[`Sendable`](/documentation/Swift/Sendable)

[`Sequence`](/documentation/Swift/Sequence)

---

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)