Fix follower offsetY with flip/mirror.

This commit is contained in:
Davide Tantillo 2026-03-18 18:08:00 +01:00
parent 61b2b0291d
commit 05344e805c

View File

@ -916,8 +916,9 @@ class SpineC3Instance extends globalThis.ISDKWorldInstanceBase {
continue;
}
const rotatedOffsetX = follower.offsetX * cos - follower.offsetY * sin;
const rotatedOffsetY = follower.offsetX * sin + follower.offsetY * cos;
const offsetY = negateAngle ? -follower.offsetY : follower.offsetY;
const rotatedOffsetX = follower.offsetX * cos - offsetY * sin;
const rotatedOffsetY = follower.offsetX * sin + offsetY * cos;
instance.x = x + rotatedOffsetX;
instance.y = y + rotatedOffsetY;