Entity

interface Entity
simulation/src/entity.ts:59

Members

addressreadonly

address: UniverseAddress | null

What this entity is a manifestation of, when it is a generated thing.

ballisticCoefficientreadonly

ballisticCoefficient: number

mass / (drag coefficient × area), kg/m². Governs atmospheric entry.

characterreadonly

character: CharacterState | null

controlreadonly

control: ControlInput

flightAssistreadonly

flightAssist: boolean

Rotational damping — "flight assist" — on by default for playability.

idreadonly

kindreadonly

massreadonly

mass: number

namereadonly

name: string

railsreadonly

rails: RailsEpoch | null

The epoch this entity coasts from, while it is coasting.

Written by the world alone — entered when a tick finds the entity eligible, dropped by any input, teleport or frame change. Null while the entity is integrated tick by tick.

spawnedAtreadonly

spawnedAt: number

Tick the entity was created on; devtools sort by it.

statereadonly

state: FrameState

Position, orientation and motion, expressed in some reference frame.

thrustersreadonly

thrusters: ThrusterProfile | null

Null for anything that cannot maneuver.