<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothRoundedBoxShape/init(size:edgeRadius:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C15RoundedBoxShapeV4size10edgeRadiusACs5SIMD3VySfG_Sftcfc"
  },
  "title" : "init(size:edgeRadius:)"
}
-->

# init(size:edgeRadius:)

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

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

## Parameters

`size`

The size of the box along each axis.

`edgeRadius`

The radius of the rounded edges.

---

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)