Skip to main content
gamedev.net
🔒 Locked

Animation Container Error !!!!!!!!!

Started by jad_salloum 0 replies 400+ views
Original Post
jad_salloum
jad_salloum
THIS IS THE CODE I AM USING for more info the animationRootFrame is from the SimpleAnimation Sample and i am getting the error on the line AC.SetTrackAnimationSet(1, AS);
[source lang=c#]
 AnimationSet AS;
            AnimationSet AS2;
//testBody.rootFrame    AnimationRootFrame
//ModheshBody.rootFrame    AnimationRootFrame

            AS = testBody.rootFrame.AnimationController.GetAnimationSet(0);
            AS2 = ModheshBody.rootFrame.AnimationController.GetAnimationSet(0);
                   
            AnimationController AC = ModheshBody.rootFrame.AnimationController.Clone(50, 30, 10, 30);
            AC.SetTrackAnimationSet(0, AS2);
            AC.SetTrackAnimationSet(1, AS);

            ModheshBody.rootFrame.AnimationController.SetTrackEnable(0, true);
            ModheshBody.rootFrame.AnimationController.SetTrackPosition(0, 0);
            ModheshBody.rootFrame.AnimationController.SetTrackSpeed(0, elspsedTime);
            ModheshBody.rootFrame.AnimationController.SetTrackWeight(0, 1);
            ModheshBody.rootFrame.AnimationController.SetTrackAnimationSet(0, AS);

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.