@esotericsoftware/spine-canvas 4.2.70 → 4.2.72
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.
|
@@ -7137,7 +7137,7 @@ var spine = (() => {
|
|
|
7137
7137
|
}
|
|
7138
7138
|
if (a >= t) {
|
|
7139
7139
|
d = Math.pow(this.damping, 60 * t);
|
|
7140
|
-
const m = this.massInverse * t, e = this.strength, w = this.wind * f, g =
|
|
7140
|
+
const m = this.massInverse * t, e = this.strength, w = this.wind * f * skeleton.scaleX, g = this.gravity * f * skeleton.scaleY;
|
|
7141
7141
|
do {
|
|
7142
7142
|
if (x) {
|
|
7143
7143
|
this.xVelocity += (w - this.xOffset * e) * m;
|
|
@@ -8092,10 +8092,10 @@ var spine = (() => {
|
|
|
8092
8092
|
}
|
|
8093
8093
|
/** Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose as `{ x: number, y: number, width: number, height: number }`.
|
|
8094
8094
|
* Note that this method will create temporary objects which can add to garbage collection pressure. Use `getBounds()` if garbage collection is a concern. */
|
|
8095
|
-
getBoundsRect() {
|
|
8095
|
+
getBoundsRect(clipper) {
|
|
8096
8096
|
let offset = new Vector2();
|
|
8097
8097
|
let size = new Vector2();
|
|
8098
|
-
this.getBounds(offset, size);
|
|
8098
|
+
this.getBounds(offset, size, void 0, clipper);
|
|
8099
8099
|
return { x: offset.x, y: offset.y, width: size.x, height: size.y };
|
|
8100
8100
|
}
|
|
8101
8101
|
/** Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose.
|