<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothCapsuleShape",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C12CapsuleShapeV"
  },
  "title" : "ClothCapsuleShape"
}
-->

# ClothCapsuleShape

Shape representing a capsule (full height is `height + 2 * radius`).

```
struct ClothCapsuleShape
```

## Topics

### Creating a capsule shape

[`init(height: Float, radius: Float)`](/documentation/RealityKit/ClothCapsuleShape/init(height:radius:))

Creates a capsule shape with the given height and radius.

### Instance Properties

[`var height: Float`](/documentation/RealityKit/ClothCapsuleShape/height)

The length of the cylinder portion of the capsule.

[`var radius: Float`](/documentation/RealityKit/ClothCapsuleShape/radius)

The radius of the cylinder portion and the radius of each hemisphere.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)