{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.silverlabs_nat.emperor_penguin.main": {
      "states": {
        "default": {
          "animations": [
            "idle",
            "look_at_target"
          ],
          "transitions": [
            { "swim": "q.is_in_water && !q.is_riding" },
            { "run": "q.modified_move_speed > 0.25 && !q.is_riding" },
            { "walk": "q.modified_move_speed > 0.05 && !q.is_riding" },
            {
              "fall": "q.property('silverlabs_nat:slip_anim') == 'fall' && !q.is_riding"
            },
            {
              "slide": "q.property('silverlabs_nat:slip_anim') == 'slide' && !q.is_riding"
            },
            {
              "idle_event": "math.random_integer(0, 200) == 0 && !q.is_riding"
            },
            { "sit": "q.is_sitting && !q.is_riding" }
          ],
          "blend_transition": 0.2
        },
        "idle_event": {
          "animations": [
            "idle_event"
          ],
          "transitions": [
            { "swim": "q.is_in_water" },
            { "run": "q.modified_move_speed > 0.25" },
            { "walk": "q.modified_move_speed > 0.05" },
            { "fall": "q.property('silverlabs_nat:slip_anim') == 'fall'" },
            { "slide": "q.property('silverlabs_nat:slip_anim') == 'slide'" },
            { "default": "q.all_animations_finished" },
            { "sit": "q.is_sitting" }
          ],
          "blend_transition": 0.2
        },
        "walk": {
          "animations": [
            "walk",
            "look_at_target"
          ],
          "transitions": [
            { "swim": "q.is_in_water" },
            { "fall": "q.property('silverlabs_nat:slip_anim') == 'fall'" },
            { "slide": "q.property('silverlabs_nat:slip_anim') == 'slide'" },
            { "run": "q.modified_move_speed > 0.25" },
            { "default": "q.modified_move_speed <= 0.05" }
          ],
          "blend_transition": 0.2
        },
        "run": {
          "animations": [
            "run",
            "look_at_target"
          ],
          "transitions": [
            { "swim": "q.is_in_water" },
            { "fall": "q.property('silverlabs_nat:slip_anim') == 'fall'" },
            { "slide": "q.property('silverlabs_nat:slip_anim') == 'slide'" },
            { "default": "q.modified_move_speed <= 0.05" },
            { "walk": "q.modified_move_speed <= 0.25" }
          ],
          "blend_transition": 0.2
        },
        "swim": {
          "animations": [
            "swim"
          ],
          "transitions": [
            { "run": "!q.is_in_water && q.modified_move_speed > 0.25" },
            { "walk": "!q.is_in_water && q.modified_move_speed > 0.05" },
            { "default": "!q.is_in_water" }
          ],
          "blend_transition": 0.5
        },
        "fall": {
          "animations": [
            "fall"
          ],
          "transitions": [
            { "swim": "q.is_in_water" },
            {
              "run": "q.all_animations_finished && q.modified_move_speed > 0.25"
            },
            {
              "walk": "q.all_animations_finished && q.modified_move_speed > 0.05"
            },
            { "default": "q.all_animations_finished" }
          ],
          "blend_transition": 0.2
        },
        "slide": {
          "animations": [
            "slide"
          ],
          "transitions": [
            { "swim": "q.is_in_water" },
            {
              "run": "q.all_animations_finished && q.modified_move_speed > 0.25"
            },
            {
              "walk": "q.all_animations_finished && q.modified_move_speed > 0.05"
            },
            { "default": "q.all_animations_finished" }
          ],
          "blend_transition": 0.2
        },
        "sit": {
          "animations": [
            "sit"
          ],
          "transitions": [
            { "unsit_transition": "!q.is_sitting" }
          ],
          "blend_transition": 0.2
        },
        "unsit_transition": {
          "animations": [
            "unsit"
          ],
          "transitions": [
            { "default": "q.all_animations_finished" }
          ],
          "blend_transition": 0.2
        }
      }
    },
    "controller.animation.silverlabs_nat.emperor_penguin.baby_main": {
      "initial_state": "default",
      "states": {
        "default": {
          "animations": [
            "baby_idle",
            "look_at_target"
          ],
          "transitions": [
            { "sit": "q.is_sitting" },
            { "swim": "q.is_in_water" },
            { "run": "q.modified_move_speed > 0.25" },
            { "walk": "q.modified_move_speed > 0.05" }
          ],
          "blend_transition": 0.2
        },
        "walk": {
          "animations": [
            "baby_walk",
            "look_at_target"
          ],
          "transitions": [
            { "sit": "q.is_sitting" },
            { "swim": "q.is_in_water" },
            { "run": "q.modified_move_speed > 0.25" },
            { "default": "q.modified_move_speed <= 0.05" }
          ],
          "blend_transition": 0.2
        },
        "run": {
          "animations": [
            "baby_run",
            "look_at_target"
          ],
          "transitions": [
            { "sit": "q.is_sitting" },
            { "swim": "q.is_in_water" },
            { "default": "q.modified_move_speed <= 0.05" },
            { "walk": "q.modified_move_speed <= 0.25" }
          ],
          "blend_transition": 0.2
        },
        "swim": {
          "animations": [
            "baby_swim"
          ],
          "transitions": [
            { "run": "!q.is_in_water && q.modified_move_speed > 0.25" },
            { "walk": "!q.is_in_water && q.modified_move_speed > 0.05" },
            { "default": "!q.is_in_water" }
          ],
          "blend_transition": 0.5
        },
        "sit": {
          "animations": [
            "baby_sit",
            "look_at_target"
          ],
          "blend_transition": 0.0,
          "transitions": [
            { "sit_loop": "q.is_sitting && q.state_time >= 0.5" },
            { "unsit": "!q.is_sitting" }
          ]
        },
        "sit_loop": {
          "animations": [
            "baby_sit_idle",
            "look_at_target"
          ],
          "blend_transition": 0.0,
          "transitions": [
            { "unsit": "!q.is_sitting" }
          ]
        },
        "unsit": {
          "animations": [
            "baby_unsit",
            "look_at_target"
          ],
          "blend_transition": 0.2,
          "transitions": [
            {
              "default": "q.all_animations_finished && q.modified_move_speed <= 0.05"
            },
            {
              "walk": "q.all_animations_finished && q.modified_move_speed > 0.05"
            },
            {
              "run": "q.all_animations_finished && q.modified_move_speed > 0.25"
            }
          ]
        }
      }
    }
  }
}
