Animated rotation going into the wrong direction in default branch

Issue #1070 new
Lukas Meindl created an issue

Rotation goes wrong in default branch. Regular rotations (non-animated) work fine - tested around each of the 3 axises!

Reproduction steps:

Add to a Samplebrowser demo (e.g. helloworld) and start, this rotates right in the 0.8.X versions but left in the default branch:

    CEGUI::Animation* anim = AnimationManager::getSingleton().createAnimation("RightForSure");
    anim->setReplayMode(Animation::RM_Loop);
    anim->setDuration(0.8f);

    CEGUI::Affector* aff = anim->createAffector("Rotation", "QuaternionSlerp");
    aff->setApplicationMethod(Affector::AM_Absolute);

    aff->createKeyFrame(0.f, "x:0 y:0 z:0");
    aff->createKeyFrame(0.4f, "x:0 y:0 z:180");
    aff->createKeyFrame(0.8f, "x:0 y:0 z:360");



    CEGUI::AnimationInstance* instance = CEGUI::AnimationManager::getSingleton().instantiateAnimation(anim);
    instance->setTargetWindow(wnd);

    instance->start();

Comments (0)

  1. Log in to comment