--- title: "Astra.PhysicsFieldSample" 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-physicsfieldsample/ --- # Astra.PhysicsFieldSample Current field response at a world point. Wind drag is kg/s; linear/angular drag are exponential rates per second. Acceleration is m/s². Membership is evaluated at solver centers of mass, not collider surfaces. **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.PhysicsFieldSample ``` Current field response at a world point. Wind drag is kg/s; linear/angular drag are exponential rates per second. Acceleration is m/s². Membership is evaluated at solver centers of mass, not collider surfaces. **Interfaces:** `System.IEquatable`. ## Membros | Membro | Categoria | |---|---| | [.ctor](#member-71cb5b659959fd5c) | Method | | [Acceleration](#member-e0149b240784b302) | Property | | [AffectedBodies](#member-bc788a5cafe9382f) | Property | | [AffectedMass](#member-e0d467d2da037512) | Property | | [AngularDrag](#member-20dbc5a6b9a66720) | Property | | [ContainsPoint](#member-d1027f58b26589b2) | Property | | [IsEnabled](#member-93fcd3fb68c2a781) | Property | | [LinearDrag](#member-19e5dfb79b622eb8) | Property | | [Weight](#member-22a95808753fa4c3) | Property | | [WindDrag](#member-b500cab4b8f8f15d) | Property | | [WindVelocity](#member-8d2f997ca4735053) | Property | | [WorldGravityReplacement](#member-50eadeb841322581) | Property |

.ctor

```csharp public PhysicsFieldSample(bool ContainsPoint, bool IsEnabled, float Weight, System.Numerics.Vector3 Acceleration, System.Numerics.Vector3 WindVelocity, float WindDrag, float LinearDrag, float AngularDrag, float WorldGravityReplacement, uint AffectedBodies, float AffectedMass) ``` Current field response at a world point. Wind drag is kg/s; linear/angular drag are exponential rates per second. Acceleration is m/s². Membership is evaluated at solver centers of mass, not collider surfaces. | Parâmetro | Tipo | Contrato | |---|---|---| | `ContainsPoint` | `bool` | | | `IsEnabled` | `bool` | | | `Weight` | `float` | | | `Acceleration` | `System.Numerics.Vector3` | | | `WindVelocity` | `System.Numerics.Vector3` | | | `WindDrag` | `float` | | | `LinearDrag` | `float` | | | `AngularDrag` | `float` | | | `WorldGravityReplacement` | `float` | | | `AffectedBodies` | `uint` | | | `AffectedMass` | `float` | |

Acceleration

```csharp public System.Numerics.Vector3 Acceleration { get; init; } ```

AffectedBodies

```csharp public uint AffectedBodies { get; init; } ```

AffectedMass

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

AngularDrag

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

ContainsPoint

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

IsEnabled

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

LinearDrag

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

Weight

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

WindDrag

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

WindVelocity

```csharp public System.Numerics.Vector3 WindVelocity { get; init; } ```

WorldGravityReplacement

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