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 :~!
mark as solution so others can see it
it’s so clearly:
auto bone = roleskeleton->findBone(“pipe”);
auto rx = spBone_getWorldRotationX(bone);
…