Pular para o conteúdo
AstraDOCS

Astra.PhysicsFieldSample2D

Astra atual · C# · 06 out. 2026Referência de assinaturas

XY sample from the same evaluator consumed by Box2D. Wind drag is kg/s; damping rates are per second. Centers of mass define membership.

Namespace: Astra · Assembly: Astra.Scripting · Tipo: Struct

readonly record struct Astra.PhysicsFieldSample2D

XY sample from the same evaluator consumed by Box2D. Wind drag is kg/s; damping rates are per second. Centers of mass define membership.

Interfaces: System.IEquatable<Astra.PhysicsFieldSample2D>.

Membro Categoria
.ctor Method
Acceleration Property
AffectedBodies Property
AffectedMass Property
AngularDrag Property
ContainsPoint Property
IsEnabled Property
LinearDrag Property
Weight Property
WindDrag Property
WindVelocity Property
WorldGravityReplacement Property

.ctor

public PhysicsFieldSample2D(bool ContainsPoint, bool IsEnabled, float Weight, System.Numerics.Vector2 Acceleration, System.Numerics.Vector2 WindVelocity, float WindDrag, float LinearDrag, float AngularDrag, float WorldGravityReplacement, uint AffectedBodies, float AffectedMass)

XY sample from the same evaluator consumed by Box2D. Wind drag is kg/s; damping rates are per second. Centers of mass define membership.

Parâmetro Tipo Contrato
ContainsPoint bool
IsEnabled bool
Weight float
Acceleration System.Numerics.Vector2
WindVelocity System.Numerics.Vector2
WindDrag float
LinearDrag float
AngularDrag float
WorldGravityReplacement float
AffectedBodies uint
AffectedMass float

Acceleration

public System.Numerics.Vector2 Acceleration { get; init; }

AffectedBodies

public uint AffectedBodies { get; init; }

AffectedMass

public float AffectedMass { get; init; }

AngularDrag

public float AngularDrag { get; init; }

ContainsPoint

public bool ContainsPoint { get; init; }

IsEnabled

public bool IsEnabled { get; init; }

LinearDrag

public float LinearDrag { get; init; }

Weight

public float Weight { get; init; }

WindDrag

public float WindDrag { get; init; }

WindVelocity

public System.Numerics.Vector2 WindVelocity { get; init; }

WorldGravityReplacement

public float WorldGravityReplacement { get; init; }