diff --git a/spine-ts/spine-core/src/PhysicsConstraint.ts b/spine-ts/spine-core/src/PhysicsConstraint.ts index 52f081bc2..ea3f72bc1 100644 --- a/spine-ts/spine-core/src/PhysicsConstraint.ts +++ b/spine-ts/spine-core/src/PhysicsConstraint.ts @@ -139,8 +139,8 @@ export class PhysicsConstraint extends Constraint) { if (object.pose === object.applied) { - object.applied = object.constrained; + object.useConstrained(); this.resetCache.push(object); } } @@ -247,10 +243,8 @@ export class Skeleton { this._update++; const resetCache = this.resetCache; - for (let i = 0, n = this.resetCache.length; i < n; i++) { - const object = resetCache[i]; - object.applied.set(object.pose); - } + for (let i = 0, n = this.resetCache.length; i < n; i++) + resetCache[i].resetConstrained(); const updateCache = this._updateCache; for (let i = 0, n = this._updateCache.length; i < n; i++)