@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.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -6638,22 +6638,22 @@ function deformers(frame, grids, bodyWarp, arms, byRole) {
|
|
|
6638
6638
|
return out;
|
|
6639
6639
|
}
|
|
6640
6640
|
function hairPhysics() {
|
|
6641
|
+
const spring = { mass: 1, stiffness: 77, damping: 4.4 };
|
|
6641
6642
|
return [
|
|
6642
6643
|
{
|
|
6643
6644
|
id: "hairSway",
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6645
|
+
inputs: [
|
|
6646
|
+
{ parameter: import_format12.StandardParameter.AngleX, weight: 1, mode: "lag" },
|
|
6647
|
+
{ parameter: import_format12.StandardParameter.AmbientSway, weight: 0.25 }
|
|
6648
|
+
],
|
|
6649
|
+
output: { parameter: import_format12.StandardParameter.HairSwayX, scale: 14 },
|
|
6650
|
+
...spring
|
|
6649
6651
|
},
|
|
6650
6652
|
{
|
|
6651
6653
|
id: "hairTilt",
|
|
6652
|
-
input: { parameter: import_format12.StandardParameter.AngleZ, weight: 1 },
|
|
6653
|
-
output: { parameter: import_format12.StandardParameter.HairSwayZ, scale:
|
|
6654
|
-
|
|
6655
|
-
stiffness: 25,
|
|
6656
|
-
damping: 2.5
|
|
6654
|
+
input: { parameter: import_format12.StandardParameter.AngleZ, weight: 1, mode: "lag" },
|
|
6655
|
+
output: { parameter: import_format12.StandardParameter.HairSwayZ, scale: 9 },
|
|
6656
|
+
...spring
|
|
6657
6657
|
}
|
|
6658
6658
|
];
|
|
6659
6659
|
}
|
|
@@ -6709,6 +6709,7 @@ function declareParameters(roles) {
|
|
|
6709
6709
|
if (roles.has("hair_front")) {
|
|
6710
6710
|
add(import_format12.StandardParameter.HairSwayX, "Hair Sway X", -SWAY_RANGE, SWAY_RANGE, 0);
|
|
6711
6711
|
add(import_format12.StandardParameter.HairSwayZ, "Hair Sway Z", -SWAY_RANGE, SWAY_RANGE, 0);
|
|
6712
|
+
add(import_format12.StandardParameter.AmbientSway, "Ambient Sway", -1, 1, 0);
|
|
6712
6713
|
}
|
|
6713
6714
|
return out;
|
|
6714
6715
|
}
|