mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 19:11:36 +08:00
[ts] Port of commit ccc5b2f: Fixed root bone transform for skeleton. See #1379.
This commit is contained in:
parent
6090d84a5e
commit
33dce937bf
@ -80,8 +80,8 @@ module spine {
|
||||
let sx = skeleton.scaleX;
|
||||
let sy = skeleton.scaleY;
|
||||
this.a = MathUtils.cosDeg(rotation + shearX) * scaleX * sx;
|
||||
this.b = MathUtils.cosDeg(rotationY) * scaleY * sy;
|
||||
this.c = MathUtils.sinDeg(rotation + shearX) * scaleX * sx;
|
||||
this.b = MathUtils.cosDeg(rotationY) * scaleY * sx;
|
||||
this.c = MathUtils.sinDeg(rotation + shearX) * scaleX * sy;
|
||||
this.d = MathUtils.sinDeg(rotationY) * scaleY * sy;
|
||||
this.worldX = x * sx + skeleton.x;
|
||||
this.worldY = y * sy + skeleton.y;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user