<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothBodyComponent/visualMeshWeights",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C13BodyComponentV17visualMeshWeightsAA03PerC10VertexDataVySfGSgvp"
  },
  "title" : "visualMeshWeights"
}
-->

# visualMeshWeights

Optional weights by which the visual mesh should be deformed according to the simulation mesh.

```
var visualMeshWeights: PerClothVertexData<Float>?
```

## Discussion

A weight of 1 indicates that the simulation will fully control the corresponding visual vertex,
whereas a weight of 0 indicates that the simulation will not affect the visual vertex at all.

---

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)