Skip to content

Assembly Along the Spline

import { Steps } from ‘@astrojs/starlight/components’;

Assembly along the spline is an optional effect where a multi-part mesh starts as scattered, exploded pieces and assembles itself as it travels the path. It’s entirely opt-in. With assembly off, the deformation is bit-for-bit the normal flow.

Setting it up has two halves: baking pieces (splitting the mesh) on the Pieces tab, then tuning the assembly on the Behavior tab.

The Pieces tab splits one mesh into rigid chunks. Open it from the tab strip, or from a Bake Pieces… button (on the component’s hero card or the Behavior tab’s Assembly section).

  1. Pick a split mode for how the mesh breaks into pieces:

    Split modeHow it splits
    Connected FacesInto separate connected shells (the natural choice for a mesh of distinct parts).
    MaterialsOne piece per material slot.
    LatticeA grid shatter, the always-works fallback that chops any mesh into chunks.
    Vertex DissolveA finer per-vertex break-up.
  2. The Pieces tab takes over the viewport preview. Use the in-tab Play / Stop toggle to check the split:

    • Stopped → Segmentation: each piece is tinted a distinct color so you can confirm the mesh actually split. A welded mesh that collapses to a single piece is flagged here; switch split modes if you see that.
    • Playing → Assemble: the looping explode → settle, driven by the Assembly controls.
  3. Click Commit to write a durable pieces mesh and bind it to the actor.

Once pieces are committed, the Behavior tab’s Assembly section swaps from the Bake Pieces… button to the real controls:

ControlWhat it does
Enable AssemblyTurns the effect on. Off = pure flow deformation.
Assemble CurveThe eased global sweep that resolves pieces over the journey.
Explode RadiusHow far pieces scatter while unresolved.
Tumble TurnsHow much each piece spins while exploded.
Assemble WindowThe fraction of the journey a single piece takes to snap into place.
Assemble LagStaggers pieces in time by index (0 = a purely spatial assembly front).
  • The Pieces tab owns the pieces asset: baking, previewing, and committing.
  • The Behavior tab owns the assembly tuning.
  • The settings panel’s Recreate action only rebuilds the material variants; it never touches your committed pieces.

Each Meshes & Materials card shows a Pieces baked ✓ / No piece bake indicator so you can see at a glance which meshes are assembly-ready.