VSL method CreateTransition

From Virtools Wiki

Jump to: navigation, search


// Char is a pIn of type Character, that has several animations already assigned

Animation anim1 = Char.GetAnimation(0);
Animation anim2 = Char.GetAnimation(1);
Animation resultanim = Animation.Cast(bc.CreateObject(CKID_KEYEDANIMATION, "TransitionAnimation", true, false));
float f = resultanim.CreateTransition(anim1, anim2, CK_TRANSITION_WARPTOSTART);
Char.AddAnimation(resultanim); 
Personal tools
The Swap-Meet