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

# ClothQueryVolumeComponent

A component that defines a volume for querying particles of cloth bodies.

```
struct ClothQueryVolumeComponent
```

## Topics

### Creating a query volume

[`init(shape: ClothVolumeShape)`](/documentation/RealityKit/ClothQueryVolumeComponent/init(shape:))

Creates a cloth query volume component with the given shape.

### Configuring the volume shape

[`var shape: ClothVolumeShape`](/documentation/RealityKit/ClothQueryVolumeComponent/shape)

The shape of the volume.

### Accessing query results

[`var queryEntities: [Entity]`](/documentation/RealityKit/ClothQueryVolumeComponent/queryEntities)

The entities to query for intersections with the volume.

## Relationships

### Conforms To

[`Component`](/documentation/RealityKit/Component)

---

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)