I'm using .X animated models to show into the scene the main characters of a game I'm developing using Irrlicht. My .X files contain several animations organized in several animation sets, each of them identified by a string name.
When loading the models, I call the irr::scene::ISceneManager::getMesh function to obtain the IAnimatedMesh pointer. Then I use it to call the irr::scene::ISceneManager::addAnimatedMeshSceneNode function to add the SceneNode. Up to this point, everything is ok.
Problems start when I want to set the current animation for a specific SceneNode. As I want to do it using the name of the animation, I guess I should use the irr::scene::IAnimatedMeshX::setCurrentAnimation method.
As I only can acces to the IAnimatedMeshSceneNode (because I don´t keep a pointer to the IAnimatedMesh when I load the .X file), how can I access to the IAnimatedMesh asociated to my IAnimatedSceneNode? Is there any other simpler way to do this?
Thx.
