public void startAnimation(String name) { if (myAnimationState.animation.name != name) { myAnimationState = myModel.createAnimationState(name); } }
public AnimationController(SkinnedModelRenderable renderable) : base(renderable, "animation") { myModel = renderable.model as SkinnedModel; myAnimationState = myModel.createAnimationState("null"); }