---
title: visualMeshWeights
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/clothbodycomponent/visualmeshweights
---

# visualMeshWeights

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

## Declaration

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

## Discussion

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.

## See Also

### Mapping the visual mesh

- [visualMesh](realitykit/clothbodycomponent/visualmesh.md)
- [materialNames](realitykit/clothbodycomponent/materialnames.md)
- [ClothBodyComponent.PerVisualVertexData](realitykit/clothbodycomponent/pervisualvertexdata.md)
- [ClothBodyComponent.PerSimulationVertexData](realitykit/clothbodycomponent/persimulationvertexdata.md)
