﻿{
  "_doc": "Secondary motion / spring bones (scripts/spring_bones.gd, Boss 2026-10-22). VIEW ONLY. Master switch = data/config.json \"spring_bones\" (or --springs=off|on); \"enabled\" here turns the whole data off. hair: per hairstyle (assets/hair/<style>) spring chains found from the mesh: root_y = where the hair starts to hang (0 = the lowest hair, 1 = the top of the hair), chains = [{name, yaw (deg, 0 = front, 90 = the character's right, 180 = back), gate (how far from the chain's centre line hair still swings, x hair height), joints, stiffness / drag / gravity overrides}], radius = joint radius (x hair height). SpringBoneSimulator3D (world space): stiffness (pull back to the modelled shape, per second), drag 0..1 (air drag: more = trails further behind a run and settles sooner), gravity (pull down, per second). Tuned headless (spring_bones_test.gd): idle sag < 0.1 rad, steady run 0.3-0.45 rad, start / stop / turn peaks 0.6-0.9 rad. colliders: body bones that get a sphere (from the body mesh: fill = the share of that bone's vertices inside, scale = x radius); every sphere is shrunk so no chain starts inside it. nodes: springs on rigid parts (mob_dress.gd kinds, asura_chibi.gd parts): k = spring rate (1/s^2), damp = damping ratio (1 = no overshoot), gravity (m/s^2 of the tip), max_deg = swing limit, damp_per_level / k_per_level = extra damping / rate for each sprung part a part hangs from (kelp / ribbon segments; equal rates down a chain resonate), tip_mul = tip distance from the part's mesh centre. static_kinds = dress kinds without their own motion that still get a spring. lod: far = metres from the camera, max_rigs / max_views = how many hair rigs / spring views run (nearest first), check_s = re-rank period, teleport_m = a jump that resets the springs.",
  "enabled": true,
  "lod": {"far": 22.0, "max_rigs": 16, "max_views": 24, "check_s": 0.5, "teleport_m": 1.5},
  "colliders": {
    "Head": {"fill": 0.55},
    "NeckTwist01": {"fill": 0.6},
    "Spine02": {"fill": 0.5},
    "Spine01": {"fill": 0.5},
    "Waist": {"fill": 0.45},
    "L_Clavicle": {"fill": 0.5},
    "R_Clavicle": {"fill": 0.5},
    "L_Upperarm": {"fill": 0.6},
    "R_Upperarm": {"fill": 0.6}
  },
  "hair": {
    "_defaults": {"root_y": 0.45, "bands": 14, "joints": 4, "radius": 0.02, "gate": 0.25, "stiffness": 5.0, "drag": 0.3, "gravity": 1.5},
    "long": {"root_y": 0.42, "joints": 4, "stiffness": 6.0, "drag": 0.28, "gravity": 1.6, "gate": 0.3,
      "chains": [{"name": "back", "yaw": 180}, {"name": "back_l", "yaw": -135}, {"name": "back_r", "yaw": 135},
        {"name": "side_l", "yaw": -75, "stiffness": 8.0}, {"name": "side_r", "yaw": 75, "stiffness": 8.0}]},
    "ponytail": {"root_y": 0.47, "joints": 4, "stiffness": 4.5, "drag": 0.2, "gravity": 1.5, "gate": 0.16,
      "chains": [{"name": "tail", "yaw": 180}, {"name": "lock_l", "yaw": -70, "gate": 0.08, "stiffness": 8.0, "drag": 0.3, "joints": 2},
        {"name": "lock_r", "yaw": 70, "gate": 0.08, "stiffness": 8.0, "drag": 0.3, "joints": 2}]},
    "twintail": {"root_y": 0.42, "joints": 4, "stiffness": 4.5, "drag": 0.2, "gravity": 1.5, "gate": 0.18,
      "chains": [{"name": "tail_l", "yaw": -90}, {"name": "tail_r", "yaw": 90}]},
    "bob": {"root_y": 0.42, "joints": 2, "stiffness": 10.0, "drag": 0.4, "gravity": 1.0, "gate": 0.22,
      "chains": [{"name": "back", "yaw": 180}, {"name": "side_l", "yaw": -90}, {"name": "side_r", "yaw": 90}]}
  },
  "static_kinds": ["fin"],
  "nodes": {
    "_defaults": {"k": 60.0, "damp": 0.4, "gravity": 0.0, "max_deg": 35.0, "tip_mul": 1.6, "damp_per_level": 0.2, "k_per_level": 0.8},
    "ribbon": {"k": 45.0, "damp": 0.45, "gravity": 0.4, "max_deg": 40.0},
    "kelp": {"k": 30.0, "damp": 0.4, "gravity": 0.0, "max_deg": 40.0},
    "cape": {"k": 40.0, "damp": 0.4, "gravity": 0.6, "max_deg": 30.0},
    "wing": {"k": 90.0, "damp": 0.4, "max_deg": 18.0, "tip_mul": 1.0},
    "fin": {"k": 110.0, "damp": 0.3, "max_deg": 20.0},
    "wave": {"k": 45.0, "damp": 0.45, "max_deg": 35.0},
    "sway": {"k": 45.0, "damp": 0.35, "max_deg": 30.0},
    "flap": {"k": 90.0, "damp": 0.4, "max_deg": 18.0, "tip_mul": 1.0},
    "fox_tail": {"k": 35.0, "damp": 0.3, "gravity": 0.3, "max_deg": 32.0, "tip_mul": 1.4},
    "tail_tuft": {"k": 55.0, "damp": 0.3, "max_deg": 30.0},
    "mane": {"k": 140.0, "damp": 0.35, "max_deg": 9.0, "tip_mul": 1.0}
  }
}
