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

# shape

The (simulation) shape of the collider.

```
var shape: ClothColliderShape { get set }
```

## Discussion

The shape type cannot be changed after creation.
Assigning a shape of a different type will be silently ignored.
To use a different shape type, create a new component.

The dynamic shape might differ from the static shape in the case of a mesh shape.
One such scenario is when the mesh shape was created using a low-level mesh.
In this scenario, the dynamic shape will try to match the low-level mesh.
Moreover, if the entity has a `ModelComponent` with a visual mesh that was not created using a low-level mesh,
then it too will try to match the low-level mesh.
Another scenario is when the entity has a `ModelComponent` and the shape was not created using a low-level mesh.
In this scenario, the dynamic shape will try to match the visual mesh in `ModelComponent`.

---

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)