There are 3 ways to fix the correct bounding box.
a) comment out sphere.attachToBone(sk.bones[sk.getBoneIndexByName("Bone.001")], body);
b) or comment out anim.goToFrame(anim.toFrame);
c) or change the PG version to 4.2.1
I did a quick scour of the changelog and didn’t see any breaking announcement related to it. But a ton of work was done to animations… so wai ? or bug ?
It looks like the bounding box center is different sometimes. When it works, it’s (0, 1, 0) but sometimes it will be computed as (0, 0, 0) which creates the offset.