Log inGet started
World

Procgen Effects Showcase

Branchmain
Branchesmain
Commit99ff90d12c

README.md

LaunchView

LaunchView frames the launch for every player who joins. The orbit rig normally aims at the player's head, which keeps the horizon in the middle of the frame. LaunchView raises the rig's aim point a few metres above the player, so the camera looks up at the plume, the vehicle and the sky.

It is written to sit on the PlayerPrototype's camera rig, so every joining player's own camera gets it. It works on the @builtin::controller.orbital_follow component on its own entity, which the Camera component attaches. That orbit component can appear after LaunchView's own start, so the value is applied again every frame until the orbit component exists and holds it.

It runs at executionOrder = -80, after the orbit rig (-90) has set itself up.

Fields

FieldTypeDefaultDescription
aimHeightnumber3.8How far above the player the orbit rig aims, in metres.

aimHeight is Sync.

Lifecycle

  • start(): applies aimHeight to the orbit component.
  • update(dt): applies it again each frame, writing only when the orbit component's aimHeight differs.
  • onPropertyChanged(key, value, oldValue): applies it at once when aimHeight changes.