Pular para o conteúdo
AstraDOCS

Astra.PhysicsBodyState

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

Observed solver state in world space. Angular velocity is rad/s. Runtime only: capturing this does not change the authored initial velocity.

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

readonly record struct Astra.PhysicsBodyState

Observed solver state in world space. Angular velocity is rad/s. Runtime only: capturing this does not change the authored initial velocity.

Interfaces: System.IEquatable<Astra.PhysicsBodyState>.

Membro Categoria
.ctor Method
AngularVelocity Property
CenterOfMass Property
IsActive Property
IsSleeping Property
LinearVelocity Property

.ctor

public PhysicsBodyState(System.Numerics.Vector3 LinearVelocity, System.Numerics.Vector3 AngularVelocity, System.Numerics.Vector3 CenterOfMass, bool IsActive, bool IsSleeping)

Observed solver state in world space. Angular velocity is rad/s. Runtime only: capturing this does not change the authored initial velocity.

Parâmetro Tipo Contrato
LinearVelocity System.Numerics.Vector3
AngularVelocity System.Numerics.Vector3
CenterOfMass System.Numerics.Vector3
IsActive bool
IsSleeping bool

AngularVelocity

public System.Numerics.Vector3 AngularVelocity { get; init; }

CenterOfMass

public System.Numerics.Vector3 CenterOfMass { get; init; }

IsActive

public bool IsActive { get; init; }

IsSleeping

public bool IsSleeping { get; init; }

LinearVelocity

public System.Numerics.Vector3 LinearVelocity { get; init; }