mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[haxe] Port: Scale physics constraint limits with skeleton scale. See #2576.
This commit is contained in:
parent
520c0750f5
commit
42079d1d23
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user