Pular para o conteúdo
AstraDOCS

Astra.Components.Joint2D

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

Junta 2D: Fixed/Weld, Revolute, Prismatic ou Distance reais. Família Física 2D · Juntas.

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

readonly struct Astra.Components.Joint2D

Junta 2D: Fixed/Weld, Revolute, Prismatic ou Distance reais. Família Física 2D · Juntas.

Referência estudada: https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Joint2D.html

Interfaces: Astra.Components.IComponentFacade<Astra.Components.Joint2D>.

Consulte também Junta 2D para propriedades, valores iniciais, requisitos e edição em Play.

Membro Categoria
.ctor Method
Remove Method
Wrap Method
AnchorAX Property
AnchorAY Property
AnchorBX Property
AnchorBY Property
AngularDampingRatio Property
AngularHertz Property
AxisAngleDegrees Property
CollideConnected Property
Component Property
Enabled Property
InstanceId Property
IsAlive Property
Kind Property
Length Property
LimitEnabled Property
LinearDampingRatio Property
LinearHertz Property
LowerLimit Property
MaxLength Property
MaxMotorForce Property
MaxMotorTorque Property
MinLength Property
MotorAngularSpeedDegrees Property
MotorEnabled Property
MotorSpeed Property
Object Property
ReferenceAngleDegrees Property
SpringDamping Property
SpringEnabled Property
SpringHertz Property
SpringTargetAngleDegrees Property
SpringTargetTranslation Property
Target Property
TypeId Property
UpperLimit Property
WorldAnchor Property

.ctor

public Joint2D(Astra.Component component)
Parâmetro Tipo Contrato
component Astra.Component

Remove

public void Remove()

Remove a instância pelo ciclo nativo; dependências e ownership podem recusar.

Wrap

public static Astra.Components.Joint2D Wrap(Astra.Component component)
Parâmetro Tipo Contrato
component Astra.Component

AnchorAX

public float AnchorAX { get; set; }

Anchor A X (m)

Faixa válida: -1000 a 1000.

AnchorAY

public float AnchorAY { get; set; }

Anchor A Y (m)

Faixa válida: -1000 a 1000.

AnchorBX

public float AnchorBX { get; set; }

Anchor B X (m)

Faixa válida: -1000 a 1000.

AnchorBY

public float AnchorBY { get; set; }

Anchor B Y (m)

Faixa válida: -1000 a 1000.

AngularDampingRatio

public float AngularDampingRatio { get; set; }

Amortecimento angular weld

Faixa válida: 0 a 10.

AngularHertz

public float AngularHertz { get; set; }

Mola angular weld (Hz)

Faixa válida: 0 a 120.

AxisAngleDegrees

public float AxisAngleDegrees { get; set; }

Eixo local A (graus)

Faixa válida: -180 a 180.

CollideConnected

public bool CollideConnected { get; set; }

Colidir conectados

Component

public Astra.Component Component { get; }

Enabled

public bool Enabled { get; set; }

Ativo

InstanceId

public ulong InstanceId { get; }

IsAlive

public bool IsAlive { get; }

Kind

public Astra.Components.Joint2D.KindOption Kind { get; set; }

Modo

Length

public float Length { get; set; }

Comprimento repouso (m)

Faixa válida: 0.005 a 1000.

LimitEnabled

public bool LimitEnabled { get; set; }

Limites

LinearDampingRatio

public float LinearDampingRatio { get; set; }

Amortecimento linear weld

Faixa válida: 0 a 10.

LinearHertz

public float LinearHertz { get; set; }

Mola linear weld (Hz)

Faixa válida: 0 a 120.

LowerLimit

public float LowerLimit { get; set; }

Limite inferior

Faixa válida: -178 a 178.

MaxLength

public float MaxLength { get; set; }

Comprimento máximo (m)

Faixa válida: 0.005 a 1000.

MaxMotorForce

public float MaxMotorForce { get; set; }

Força máxima motor (N)

Faixa válida: 0 a 1000000.

MaxMotorTorque

public float MaxMotorTorque { get; set; }

Torque máximo motor (N m)

Faixa válida: 0 a 1000000.

MinLength

public float MinLength { get; set; }

Comprimento mínimo (m)

Faixa válida: 0.005 a 1000.

MotorAngularSpeedDegrees

public float MotorAngularSpeedDegrees { get; set; }

Motor angular (graus/s)

Faixa válida: -36000 a 36000.

MotorEnabled

public bool MotorEnabled { get; set; }

Motor

MotorSpeed

public float MotorSpeed { get; set; }

Velocidade motor (m/s)

Faixa válida: -1000 a 1000.

Object

public Astra.GameObject Object { get; }

ReferenceAngleDegrees

public float ReferenceAngleDegrees { get; set; }

Ângulo referência (graus)

Faixa válida: -180 a 180.

SpringDamping

public float SpringDamping { get; set; }

Razão amortecimento

Faixa válida: 0 a 10.

SpringEnabled

public bool SpringEnabled { get; set; }

Mola

SpringHertz

public float SpringHertz { get; set; }

Frequência mola (Hz)

Faixa válida: 0 a 120.

SpringTargetAngleDegrees

public float SpringTargetAngleDegrees { get; set; }

Ângulo alvo (graus)

Faixa válida: -180 a 180.

SpringTargetTranslation

public float SpringTargetTranslation { get; set; }

Translação alvo (m)

Faixa válida: -1000 a 1000.

Target

public Astra.ObjectReference Target { get; set; }

Corpo conectado

TypeId

public static string TypeId { get; }

UpperLimit

public float UpperLimit { get; set; }

Limite superior

Faixa válida: -178 a 178.

WorldAnchor

public bool WorldAnchor { get; set; }

Conectar ao mundo