[haxe] Port: Scale physics constraint limits with skeleton scale. See #2576.

This commit is contained in:
Davide Tantillo 2024-07-12 10:22:26 +02:00
parent 520c0750f5
commit 42079d1d23

View File

@ -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;