---
title: "init(positions:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothposeresource/init(positions:)"
---

# init(positions:)

Creates a cloth pose resource with the given vertex positions.

## Declaration

```swift
@MainActor convenience init(positions: [SIMD3<Float>]) throws
```

## Parameters

- `positions`: The positions to assign to the vertices of a matching doc://com.apple.RealityKit/documentation/RealityKit/ClothMeshResource.
