---
title: ClothPoseResource
framework: realitykit
role: symbol
role_heading: Class
path: realitykit/clothposeresource
---

# ClothPoseResource

A resource that defines a set of vertex positions for a cloth body.

## Declaration

```swift
final class ClothPoseResource
```

## Overview

Overview A pose resource provides an alternate set of positions for the vertices of a ClothMeshResource; the topology is still determined by the mesh resource. One common use is to specify an already-draped starting configuration via initialMeshDraping.

## Topics

### Creating a pose resource

- [init(positions:)](realitykit/clothposeresource/init(positions:).md)

### Accessing pose positions

- [positions](realitykit/clothposeresource/positions.md)
- [withPositions(_:)](realitykit/clothposeresource/withpositions(_:).md)
- [position(at:)](realitykit/clothposeresource/position(at:).md)
- [vertexCount](realitykit/clothposeresource/vertexcount.md)

## Relationships

### Conforms To

- [Resource](realitykit/resource.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Cloth resources

- [ClothMeshResource](realitykit/clothmeshresource.md)
