Skip to content

Commit

Permalink
[haxe] Port: Scale physics constraint limits with skeleton scale. See #…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidetan committed Jul 13, 2024
1 parent 520c075 commit 42079d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spine-haxe/spine-haxe/spine/PhysicsConstraint.hx
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ class PhysicsConstraint implements Updatable {
d:Float = -1;

var qx:Float = _data.limit * delta,
qy:Float = qx * skeleton.scaleY;
qx *= skeleton.scaleX;
qy:Float = qx * Math.abs(skeleton.scaleY);
qx *= Math.abs(skeleton.scaleX);
if (x || y) {
if (x) {
var u:Float = (ux - bx) * i;
Expand Down

0 comments on commit 42079d1

Please sign in to comment.