Chounard

  • 2017年2月7日
  • 2013年2月28日に参加
  • @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);
    }