--- title: "Astra.ShapeQuery" version: snapshot-2026-10-06 engineGeneration: astra-current language: C# status: semantic-reference runtimeVerified: false platformEvidence: [] url: https://astraengine.com.br/pt-br/snapshot-2026-10-06/api/astra-shapequery/ --- # Astra.ShapeQuery A forma varrida ou sobreposta por uma consulta. **Namespace:** `Astra` · **Assembly:** `Astra.Scripting` · **Tipo:** Struct :::note[Sobre esta referência] Assinaturas extraídas semanticamente com Roslyn/MSBuild. Isso confirma a superfície do código deste snapshot; não comprova execução no Android. As descrições vêm dos comentários da API. Membros sem explicação ainda exigem revisão editorial. ::: ## Declaração ```csharp struct Astra.ShapeQuery ``` A forma varrida ou sobreposta por uma consulta. ## Membros | Membro | Categoria | |---|---| | [HalfExtent](#member-795ed8f6a0ddc616) | Field | | [HalfHeight](#member-5b224e33243fc6af) | Field | | [Kind](#member-40a96eb5d6728dcc) | Field | | [Radius](#member-cbaa48df9f903378) | Field | | [Rotation](#member-18a4493721ec62c4) | Field | | [Box](#member-4298f25e35b3d988) | Method | | [Capsule](#member-9ffe2eb827ae51e8) | Method | | [Cylinder](#member-1e732eebb5f1afba) | Method | | [Sphere](#member-b5d9f594f6cfa0b2) | Method |

HalfExtent

```csharp public System.Numerics.Vector3 HalfExtent ```

HalfHeight

```csharp public float HalfHeight ```

Kind

```csharp public Astra.QueryShapeKind Kind ```

Radius

```csharp public float Radius ```

Rotation

```csharp public System.Numerics.Quaternion Rotation ```

Box

```csharp public static Astra.ShapeQuery Box(System.Numerics.Vector3 halfExtent, System.Numerics.Quaternion? rotation = null) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `halfExtent` | `System.Numerics.Vector3` | | | `rotation` | `System.Numerics.Quaternion?` | · Opcional: `` |

Capsule

```csharp public static Astra.ShapeQuery Capsule(float radius, float halfHeight, System.Numerics.Quaternion? rotation = null) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `radius` | `float` | | | `halfHeight` | `float` | | | `rotation` | `System.Numerics.Quaternion?` | · Opcional: `` |

Cylinder

```csharp public static Astra.ShapeQuery Cylinder(float radius, float halfHeight, System.Numerics.Quaternion? rotation = null) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `radius` | `float` | | | `halfHeight` | `float` | | | `rotation` | `System.Numerics.Quaternion?` | · Opcional: `` |

Sphere

```csharp public static Astra.ShapeQuery Sphere(float radius) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `radius` | `float` | |