【已解决】bone获取坐标

用动作编辑器编辑出来的动画 怎么能获取到组件的坐标啊 我获取到的都是0,0 转成别的坐标也还是0,0 ,下面是代码 求指教
CCComponent* c=armature->getComponent(“temp”);
CCBone* b=armature->getBone(“temp”);
CCLOG(“x-----------------%f,y-----------%f”,b->getPositionX(),b->getPositionY());
CCPoint p=convertToNodeSpace(b->getPosition());
CCLOG(“x-----------------%f,y-----------%f”,p.x,p.y);

你可以 通过 bone->nodeToArmatureTransform() 获取到 矩阵
或者 通过 bone->getWorldInfo() 获取到 armature 空间内的信息

可以了 用的getWorldInfo() 谢谢了 :7:

bone->getWorldInfo()->x
bone->getWorldInfo()->y
获取坐标