Pular para o conteúdo
AstraDOCS

Astra.DynamicMotorRuntime

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

Instance-bound commands on the real Body motor. Move applies for the current script frame; call in Update or FixedUpdate. FixedUpdate can override Update; ReleaseMove returns control to Canvas input. Commands never write pose.

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

readonly struct Astra.DynamicMotorRuntime

Instance-bound commands on the real Body motor. Move applies for the current script frame; call in Update or FixedUpdate. FixedUpdate can override Update; ReleaseMove returns control to Canvas input. Commands never write pose.

Membro Categoria
Move Method
ReadBodyState Method
ReleaseMove Method
TryJump Method

Move

public void Move(System.Numerics.Vector2 input, float yawRadians = 0)
Parâmetro Tipo Contrato
input System.Numerics.Vector2
yawRadians float · Opcional: 0

ReadBodyState

public Astra.PhysicsBodyState ReadBodyState()

ReleaseMove

public void ReleaseMove()

TryJump

public bool TryJump()

Queues one attempt for the next fixed step. Support decides acceptance; true means queued, not that an airborne jump was allowed.