@esotericsoftware/spine-canvas 4.2.34 → 4.2.35
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.
|
@@ -8687,8 +8687,8 @@ var spine = (() => {
|
|
|
8687
8687
|
data.strength = input.readFloat();
|
|
8688
8688
|
data.damping = input.readFloat();
|
|
8689
8689
|
data.massInverse = input.readFloat();
|
|
8690
|
-
data.wind = input.readFloat();
|
|
8691
|
-
data.gravity = input.readFloat();
|
|
8690
|
+
data.wind = input.readFloat() * scale;
|
|
8691
|
+
data.gravity = input.readFloat() * scale;
|
|
8692
8692
|
data.mix = input.readFloat();
|
|
8693
8693
|
flags = input.readByte();
|
|
8694
8694
|
if ((flags & 1) != 0)
|
|
@@ -9389,10 +9389,10 @@ var spine = (() => {
|
|
|
9389
9389
|
timelines.push(readTimeline1(input, new PhysicsConstraintMassTimeline(frameCount, bezierCount, index), 1));
|
|
9390
9390
|
break;
|
|
9391
9391
|
case PHYSICS_WIND:
|
|
9392
|
-
timelines.push(readTimeline1(input, new PhysicsConstraintWindTimeline(frameCount, bezierCount, index),
|
|
9392
|
+
timelines.push(readTimeline1(input, new PhysicsConstraintWindTimeline(frameCount, bezierCount, index), scale));
|
|
9393
9393
|
break;
|
|
9394
9394
|
case PHYSICS_GRAVITY:
|
|
9395
|
-
timelines.push(readTimeline1(input, new PhysicsConstraintGravityTimeline(frameCount, bezierCount, index),
|
|
9395
|
+
timelines.push(readTimeline1(input, new PhysicsConstraintGravityTimeline(frameCount, bezierCount, index), scale));
|
|
9396
9396
|
break;
|
|
9397
9397
|
case PHYSICS_MIX:
|
|
9398
9398
|
timelines.push(readTimeline1(input, new PhysicsConstraintMixTimeline(frameCount, bezierCount, index), 1));
|
|
@@ -10593,8 +10593,8 @@ var spine = (() => {
|
|
|
10593
10593
|
data.strength = getValue(constraintMap, "strength", 100);
|
|
10594
10594
|
data.damping = getValue(constraintMap, "damping", 1);
|
|
10595
10595
|
data.massInverse = 1 / getValue(constraintMap, "mass", 1);
|
|
10596
|
-
data.wind = getValue(constraintMap, "wind", 0);
|
|
10597
|
-
data.gravity = getValue(constraintMap, "gravity", 0);
|
|
10596
|
+
data.wind = getValue(constraintMap, "wind", 0) * scale;
|
|
10597
|
+
data.gravity = getValue(constraintMap, "gravity", 0) * scale;
|
|
10598
10598
|
data.mix = getValue(constraintMap, "mix", 1);
|
|
10599
10599
|
data.inertiaGlobal = getValue(constraintMap, "inertiaGlobal", false);
|
|
10600
10600
|
data.strengthGlobal = getValue(constraintMap, "strengthGlobal", false);
|
|
@@ -11210,6 +11210,7 @@ var spine = (() => {
|
|
|
11210
11210
|
continue;
|
|
11211
11211
|
}
|
|
11212
11212
|
let timeline;
|
|
11213
|
+
let timelineScale = 1;
|
|
11213
11214
|
if (timelineName == "inertia")
|
|
11214
11215
|
timeline = new PhysicsConstraintInertiaTimeline(frames, frames, constraintIndex);
|
|
11215
11216
|
else if (timelineName == "strength")
|
|
@@ -11218,15 +11219,17 @@ var spine = (() => {
|
|
|
11218
11219
|
timeline = new PhysicsConstraintDampingTimeline(frames, frames, constraintIndex);
|
|
11219
11220
|
else if (timelineName == "mass")
|
|
11220
11221
|
timeline = new PhysicsConstraintMassTimeline(frames, frames, constraintIndex);
|
|
11221
|
-
else if (timelineName == "wind")
|
|
11222
|
+
else if (timelineName == "wind") {
|
|
11222
11223
|
timeline = new PhysicsConstraintWindTimeline(frames, frames, constraintIndex);
|
|
11223
|
-
|
|
11224
|
+
timelineScale = scale;
|
|
11225
|
+
} else if (timelineName == "gravity") {
|
|
11224
11226
|
timeline = new PhysicsConstraintGravityTimeline(frames, frames, constraintIndex);
|
|
11225
|
-
|
|
11227
|
+
timelineScale = scale;
|
|
11228
|
+
} else if (timelineName == "mix")
|
|
11226
11229
|
timeline = new PhysicsConstraintMixTimeline(frames, frames, constraintIndex);
|
|
11227
11230
|
else
|
|
11228
11231
|
continue;
|
|
11229
|
-
timelines.push(readTimeline12(timelineMap, timeline, 0,
|
|
11232
|
+
timelines.push(readTimeline12(timelineMap, timeline, 0, timelineScale));
|
|
11230
11233
|
}
|
|
11231
11234
|
}
|
|
11232
11235
|
}
|