--- title: "Astra.Components.Character" version: snapshot-2026-10-06 engineGeneration: astra-current language: C# status: semantic-reference runtimeVerified: false platformEvidence: [] url: https://astraengine.com.br/pt-br/snapshot-2026-10-06/api/astra-components-character/ --- # Astra.Components.Character Personagem: Locomoção com cápsula. Família Física 3D · Corpos. **Namespace:** `Astra.Components` · **Assembly:** `Astra.Scripting` · **Tipo:** Struct :::note[Sobre esta referência] Assinaturas extraídas semanticamente com Roslyn/MSBuild. Isso confirma a superfície do código deste snapshot; não comprova execução no Android. As descrições vêm dos comentários da API. Membros sem explicação ainda exigem revisão editorial. ::: ## Declaração ```csharp readonly struct Astra.Components.Character ``` Personagem: Locomoção com cápsula. Família Física 3D · Corpos. Referência estudada: https://docs.unity3d.com/6000.0/Documentation/Manual/class-CharacterController.html **Interfaces:** `Astra.Components.IComponentFacade`. Consulte também [Personagem](/pt-br/snapshot-2026-10-06/componentes/astra-physics-character/) para propriedades, valores iniciais, requisitos e edição em Play. ## Membros | Membro | Categoria | |---|---| | [.ctor](#member-a75c148e0a75f221) | Method | | [Remove](#member-433ec21fa2c16244) | Method | | [Wrap](#member-955d3ec2708cc01c) | Method | | [Component](#member-bd6571619858feab) | Property | | [EyeHeight](#member-4a4fceb19d2ceb07) | Property | | [FloorSnapLength](#member-786d72bf1374067b) | Property | | [Gravity](#member-930adbcb73b7fb78) | Property | | [HalfHeight](#member-50eb69664530da7d) | Property | | [InheritPlatformHorizontal](#member-a87aee23e7ed7cef) | Property | | [InstanceId](#member-fa8b8c1a9a46c540) | Property | | [IsAlive](#member-6f9667035bce485c) | Property | | [JumpSpeed](#member-ad5c271211c919ea) | Property | | [Object](#member-83d2aef57d4cb4d5) | Property | | [Radius](#member-75a41f0070ef375d) | Property | | [SlopeDegrees](#member-fc08217d789b2743) | Property | | [Speed](#member-ad532a4c9b080c49) | Property | | [StepHeight](#member-4e30119a66aa6f01) | Property | | [TypeId](#member-dd48c710ebb36691) | Property |

.ctor

```csharp public Character(Astra.Component component) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `component` | `Astra.Component` | |

Remove

```csharp public void Remove() ``` Remove a instância pelo ciclo nativo; dependências e ownership podem recusar.

Wrap

```csharp public static Astra.Components.Character Wrap(Astra.Component component) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `component` | `Astra.Component` | |

Component

```csharp public Astra.Component Component { get; } ```

EyeHeight

```csharp public float EyeHeight { get; set; } ``` Altura dos olhos m (m) Faixa válida: 0.02 a 20.

FloorSnapLength

```csharp public float FloorSnapLength { get; set; } ``` Aderência ao chão (m) Faixa válida: 0 a 10.

Gravity

```csharp public float Gravity { get; set; } ``` Gravidade (m/s²) Faixa válida: 0 a 1000.

HalfHeight

```csharp public float HalfHeight { get; set; } ``` Meia altura do cilindro m (m) Faixa válida: 0.01 a 10.

InheritPlatformHorizontal

```csharp public bool InheritPlatformHorizontal { get; set; } ``` Impulso ao sair. Conserva X/Z da superfície no ar; desligar remove apenas esse impulso, sem recriar a cápsula.

InstanceId

```csharp public ulong InstanceId { get; } ```

IsAlive

```csharp public bool IsAlive { get; } ```

JumpSpeed

```csharp public float JumpSpeed { get; set; } ``` Velocidade do salto m/s (m/s) Faixa válida: 0 a 100.

Object

```csharp public Astra.GameObject Object { get; } ```

Radius

```csharp public float Radius { get; set; } ``` Raio m (m) Faixa válida: 0.01 a 10.

SlopeDegrees

```csharp public float SlopeDegrees { get; set; } ``` Inclinação máxima graus (°) Faixa válida: 1 a 89.

Speed

```csharp public float Speed { get; set; } ``` Velocidade m/s (m/s) Faixa válida: 0.01 a 100.

StepHeight

```csharp public float StepHeight { get; set; } ``` Altura do degrau (m) Faixa válida: 0 a 10.

TypeId

```csharp public static string TypeId { get; } ```