How to get bone world rotation in SPINE?

hello~, somebody know it:~?

_bone = spSkeleton_findBone(enemySprite->getSkeleton(), "gunShoot");

_bone->rotation

maybe not, I have try, I think it is bone local rotation.

bone has x,y ,worldX, worldY, rotation properties, why not have worldRotation?

1 Like

spBone_getWorldRotationX(_bone)

sorry for the late reply

I will try later. thank u :~!

@bilalmirza, I think IT WORK. ~~.

mark as solution so others can see it :slight_smile:

it’s so clearly:
auto bone = roleskeleton->findBone(“pipe”);
auto rx = spBone_getWorldRotationX(bone);
:yum: