---
title: "init(size:edgeRadius:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothroundedboxshape/init(size:edgeradius:)"
---

# init(size:edgeRadius:)

Creates a rounded box shape with the given size and edge radius.

## Declaration

```swift
init(size: SIMD3<Float>, edgeRadius: Float)
```

## Parameters

- `size`: The size of the box along each axis.
- `edgeRadius`: The radius of the rounded edges.
