mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +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;
|
d:Float = -1;
|
||||||
|
|
||||||
var qx:Float = _data.limit * delta,
|
var qx:Float = _data.limit * delta,
|
||||||
qy:Float = qx * skeleton.scaleY;
|
qy:Float = qx * Math.abs(skeleton.scaleY);
|
||||||
qx *= skeleton.scaleX;
|
qx *= Math.abs(skeleton.scaleX);
|
||||||
if (x || y) {
|
if (x || y) {
|
||||||
if (x) {
|
if (x) {
|
||||||
var u:Float = (ux - bx) * i;
|
var u:Float = (ux - bx) * i;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user