change animation on multiple animation model


I have an animated model.
This model has multiple animations on it.
Is imported from a .x file, using x2egg.

I see that the model has all the animations on it, but I don’t know how to switch between them on c++.

On the roaming ralph in c++ the animations are loaded separatelly, but I have (and prefer to have) all the animations on the same file.

How do you switch between animations?

thanks in advance!

If you are using auto_bind() to apply the animations, you will see it populates the AnimControlCollection with a set of AnimControls, one for each animation. You can simply call control->play() on the AnimControl that corresponds to the animation you want to activate.