Skip to content

Structure Nodes

L-System

Generates spawn points via L-system grammar expansion and turtle interpretation. Connect to ForEachSpawnNode to place geometry at each spawn.

Inputs

  • Seed (Float)

Outputs

  • Spawns (Scatter)

Options

  • presetId: Which built-in grammar preset to use. 1=Broadleaf 2=Fern 3=Ivy 4=Coral 5=Bramble.
  • iterations: How many times to rewrite the axiom. Clamped to 7. More = more detail, exponentially more spawns.
  • branchAngle: Yaw/pitch angle applied by +/−/&/^ symbols, in degrees.
  • segmentLength: Length of the first branch segment. Shrinks per bracket depth via lengthFalloff.
  • lengthFalloff: Multiplicative scale applied to segment length on each [ bracket. 0.85 gives natural tapering.

Tips

  • prefabHandle 0 = branch segment spawns; prefabHandle 1 = leaf spawns. Filter by handle in ForEachSpawnNode.
  • Higher iterations grow the tree exponentially: start with 4 and increase cautiously.
  • Use lengthFalloff < 1 so branch segments shrink at each bracket depth.