{
 "pack": 1,
 "id": "c4c:beh:fly_in",
 "type": "behaviour",
 "version": "1.0.0",
 "name": "Fly in",
 "description": "Flaps down from the sky and lands.",
 "author": {
  "id": "c4c",
  "name": "Crafts4Class"
 },
 "license": "cc0",
 "remixable": true,
 "derived_from": [
  {
   "id": "tween:studio/behaviors.py",
   "version": "2026-06-08",
   "note": "pose(\"fly_in\")"
  }
 ],
 "preview": {
  "moves": [
   "fly_in"
  ],
  "seconds": 3.0
 },
 "content_hash": "sha256:d85edfc72ab3843ec09ae474f5c5cbc703c105280121c5a42cbda5fb3afcb6fb",
 "content": {
  "v": 1,
  "kind": "behaviour",
  "params": {
   "from_dx": 760,
   "from_dy": -460,
   "t_in": "=dur"
  },
  "scripts": [
   {
    "hat": {
     "on": "start"
    },
    "body": [
     {
      "op": "set",
      "to": {
       "dx": "=from_dx",
       "dy": "=from_dy"
      }
     },
     {
      "op": "wave",
      "ch": "rot",
      "shape": "sin",
      "w": 22,
      "amp": "=7*(1 - 0.6*smoothstep(min(tau/max(t_in, 0.1), 1)))",
      "sync": "start"
     },
     {
      "op": "wave",
      "ch": "sy",
      "shape": "sin",
      "w": 22,
      "amp": 0.05
     },
     {
      "op": "wave",
      "ch": "sx",
      "shape": "sin",
      "w": 22,
      "amp": -0.03
     },
     {
      "op": "ramp",
      "to": {
       "dx": 0,
       "dy": 0
      },
      "over": "=max(t_in, 0.1)",
      "ease": "smooth"
     }
    ]
   }
  ],
  "name": "fly_in"
 }
}
