@ikijs/editor 0.25.1 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6570,22 +6570,22 @@ function deformers(frame, grids, bodyWarp, arms, byRole) {
6570
6570
  return out;
6571
6571
  }
6572
6572
  function hairPhysics() {
6573
+ const spring = { mass: 1, stiffness: 77, damping: 4.4 };
6573
6574
  return [
6574
6575
  {
6575
6576
  id: "hairSway",
6576
- input: { parameter: P10.AngleX, weight: 1 },
6577
- output: { parameter: P10.HairSwayX, scale: 5 },
6578
- mass: 1,
6579
- stiffness: 30,
6580
- damping: 3
6577
+ inputs: [
6578
+ { parameter: P10.AngleX, weight: 1, mode: "lag" },
6579
+ { parameter: P10.AmbientSway, weight: 0.25 }
6580
+ ],
6581
+ output: { parameter: P10.HairSwayX, scale: 14 },
6582
+ ...spring
6581
6583
  },
6582
6584
  {
6583
6585
  id: "hairTilt",
6584
- input: { parameter: P10.AngleZ, weight: 1 },
6585
- output: { parameter: P10.HairSwayZ, scale: 8 },
6586
- mass: 1,
6587
- stiffness: 25,
6588
- damping: 2.5
6586
+ input: { parameter: P10.AngleZ, weight: 1, mode: "lag" },
6587
+ output: { parameter: P10.HairSwayZ, scale: 9 },
6588
+ ...spring
6589
6589
  }
6590
6590
  ];
6591
6591
  }
@@ -6641,6 +6641,7 @@ function declareParameters(roles) {
6641
6641
  if (roles.has("hair_front")) {
6642
6642
  add(P10.HairSwayX, "Hair Sway X", -SWAY_RANGE, SWAY_RANGE, 0);
6643
6643
  add(P10.HairSwayZ, "Hair Sway Z", -SWAY_RANGE, SWAY_RANGE, 0);
6644
+ add(P10.AmbientSway, "Ambient Sway", -1, 1, 0);
6644
6645
  }
6645
6646
  return out;
6646
6647
  }