Pular para o conteúdo
AstraDOCS

Astra.CharacterRuntimeState

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

Velocity is displacement resolved during the last fixed step; MotorVelocity is the Jolt motor input. Position is the capsule foot in world space. Runtime only.

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

readonly record struct Astra.CharacterRuntimeState

Velocity is displacement resolved during the last fixed step; MotorVelocity is the Jolt motor input. Position is the capsule foot in world space. Runtime only.

Interfaces: System.IEquatable<Astra.CharacterRuntimeState>.

Membro Categoria
.ctor Method
GroundNormal Property
GroundState Property
GroundVelocity Property
HasMeasuredStep Property
IsGrounded Property
MotorVelocity Property
Position Property
Velocity Property

.ctor

public CharacterRuntimeState(Astra.CharacterGroundState GroundState, bool HasMeasuredStep, System.Numerics.Vector3 Position, System.Numerics.Vector3 Velocity, System.Numerics.Vector3 MotorVelocity, System.Numerics.Vector3 GroundVelocity, System.Numerics.Vector3 GroundNormal)

Velocity is displacement resolved during the last fixed step; MotorVelocity is the Jolt motor input. Position is the capsule foot in world space. Runtime only.

Parâmetro Tipo Contrato
GroundState Astra.CharacterGroundState
HasMeasuredStep bool
Position System.Numerics.Vector3
Velocity System.Numerics.Vector3
MotorVelocity System.Numerics.Vector3
GroundVelocity System.Numerics.Vector3
GroundNormal System.Numerics.Vector3

GroundNormal

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

GroundState

public Astra.CharacterGroundState GroundState { get; init; }

GroundVelocity

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

HasMeasuredStep

public bool HasMeasuredStep { get; init; }

IsGrounded

public bool IsGrounded { get; }

MotorVelocity

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

Position

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

Velocity

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