Chounard

  • 7 de Feb de 2017
  • Se unió 28 de Feb de 2013
  • @Chounard it doesn't work right, when i set skeleton root bone rotation to 0.0 before i set a walk animation. it also walking at an odd angle.
    here is my test code, it that right?

    void ExampleLayer::test1(cocos2d::CCObject *obj)
    {
        skeletonNode->rootBone->rotation = 0;
        skeletonNode->setToSetupPose();
        skeletonNode->setAnimation(0, "walk", true);
    }