From 42079d1d2307b362bb9b5fc25f0bebc4f132ca5c Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Fri, 12 Jul 2024 10:22:26 +0200 Subject: [PATCH] [haxe] Port: Scale physics constraint limits with skeleton scale. See #2576. --- spine-haxe/spine-haxe/spine/PhysicsConstraint.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-haxe/spine-haxe/spine/PhysicsConstraint.hx b/spine-haxe/spine-haxe/spine/PhysicsConstraint.hx index a299fdd84d..19d92c384f 100644 --- a/spine-haxe/spine-haxe/spine/PhysicsConstraint.hx +++ b/spine-haxe/spine-haxe/spine/PhysicsConstraint.hx @@ -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;