--- title: "Astra.PhysicsHit2D" 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-physicshit2d/ --- # Astra.PhysicsHit2D Struct da API C# da Astra. 8 membros declarados neste snapshot. **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 readonly record struct Astra.PhysicsHit2D ``` **Interfaces:** `System.IEquatable`. ## Membros | Membro | Categoria | |---|---| | [.ctor](#member-412901ed5b1b837f) | Method | | [ColliderInstance](#member-f86387ee8fca29b5) | Property | | [Distance](#member-53605afad26ca3c5) | Property | | [Fraction](#member-ee5fc8a58ac759a9) | Property | | [IsSensor](#member-54a5cf4ad155264e) | Property | | [Normal](#member-858219492a4b8aa0) | Property | | [Object](#member-ee5dd043e78d5b63) | Property | | [Point](#member-472b9c23c6c4f1d5) | Property |

.ctor

```csharp public PhysicsHit2D(Astra.GameObject Object, ulong ColliderInstance, System.Numerics.Vector2 Point, System.Numerics.Vector2? Normal, float Distance, float Fraction, bool IsSensor) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `Object` | `Astra.GameObject` | | | `ColliderInstance` | `ulong` | | | `Point` | `System.Numerics.Vector2` | | | `Normal` | `System.Numerics.Vector2?` | | | `Distance` | `float` | | | `Fraction` | `float` | | | `IsSensor` | `bool` | |

ColliderInstance

```csharp public ulong ColliderInstance { get; init; } ```

Distance

```csharp public float Distance { get; init; } ```

Fraction

```csharp public float Fraction { get; init; } ```

IsSensor

```csharp public bool IsSensor { get; init; } ```

Normal

```csharp public System.Numerics.Vector2? Normal { get; init; } ```

Object

```csharp public Astra.GameObject Object { get; init; } ```

Point

```csharp public System.Numerics.Vector2 Point { get; init; } ```