{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.silverlabs_nat.hedgehog.main": {
      "states": {
        "default": {
          "animations": [
            "idle"
          ],
          "transitions": [
            { "sit": "q.is_sitting" },
            {
              "idle_event": "math.random_integer(0, 1000) == 0 && q.ground_speed < 0.15"
            },
            { "rolling": "q.property('silverlabs_nat:rolling')" },
            {
              "roll_ground": "q.ground_speed > 0.19 && q.property('silverlabs_nat:panic_state')"
            },
            { "hide": "q.property('silverlabs_nat:is_hiding')" },
            { "walk": "!q.is_in_water && q.modified_move_speed >= 0.05" },
            { "attack": "v.attack_time > 0.0" }
          ],
          "blend_transition": 0.2
        },
        "sit": {
          "animations": [
            "sit"
          ],
          "transitions": [
            { "default": "!q.is_sitting" }
          ],
          "blend_transition": 0.2
        },
        "idle_event": {
          "animations": [
            "idle_event"
          ],
          "transitions": [
            { "default": "q.all_animations_finished" },
            { "sit": "q.is_sitting" },
            {
              "walk": "!q.is_in_water && !q.is_interested && q.modified_move_speed >= 0.05"
            }
          ],
          "blend_transition": 0.2
        },
        "hide": {
          "animations": [
            "hide"
          ],
          "transitions": [
            { "unhide": "!q.property('silverlabs_nat:is_hiding')" }
          ],
          "blend_transition": 0.2
        },
        "unhide": {
          "animations": [
            "unhide"
          ],
          "transitions": [
            { "default": "q.all_animations_finished" }
          ],
          "blend_transition": 0.2
        },
        "walk": {
          "animations": [
            "walk"
          ],
          "transitions": [
            {
              "default": "!q.property('silverlabs_nat:is_hiding') && (q.modified_move_speed < 0.05)"
            },
            { "sit": "q.is_sitting" },
            {
              "hide": "q.property('silverlabs_nat:is_hiding') && (q.modified_move_speed < 0.05)"
            },
            {
              "roll_ground": "q.ground_speed > 0.19 && q.property('silverlabs_nat:panic_state')"
            }
          ],
          "blend_transition": 0.2
        },
        "attack": {
          "animations": [
            "attack"
          ],
          "transitions": [
            { "default": "q.all_animations_finished" }
          ],
          "blend_transition": 0.2
        },
        "rolling": {
          "animations": [
            "roll_air"
          ],
          "transitions": [
            { "default": "!q.property('silverlabs_nat:rolling')" }
          ],
          "blend_transition": 0.2
        },
        "roll_ground": {
          "animations": [
            "roll_ground"
          ],
          "transitions": [
            {
              "default": "q.ground_speed < 0.2 || !q.property('silverlabs_nat:panic_state')"
            }
          ],
          "blend_transition": 0.2
        }
      }
    }
  }
}
