How to get bone world rotation in SPINE?

How to get bone world rotation in SPINE?
0.0 0

#1

hello~, somebody know it:~?


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

_bone->rotation


#3

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


#4

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


#5

spBone_getWorldRotationX(_bone)


#6

sorry for the late reply


#7

I will try later. thank u :~!


#8

@bilalmirza, I think IT WORK. ~~.


#9

mark as solution so others can see it :slight_smile:


#10

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