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);
    }