mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[ts] Port: Scale physics constraint limits with skeleton scale. See #2576.
This commit is contained in:
parent
884af914a2
commit
520c0750f5
@ -148,8 +148,8 @@ export class PhysicsConstraint implements Updatable {
|
||||
this.uy = by;
|
||||
} else {
|
||||
let a = this.remaining, i = this.inertia, t = this.data.step, f = this.skeleton.data.referenceScale, d = -1;
|
||||
let qx = this.data.limit * delta, qy = qx * skeleton.scaleY;
|
||||
qx *= skeleton.scaleX;
|
||||
let qx = this.data.limit * delta, qy = qx * Math.abs(skeleton.scaleY);
|
||||
qx *= Math.abs(skeleton.scaleX);
|
||||
if (x || y) {
|
||||
if (x) {
|
||||
const u = (this.ux - bx) * i;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user