I've created an AnimatedMeshSceneNode, using the sydney md2 from the tutorials. By running some tests, I found that the model has an initial rotation that makes it look in the direction of the X axis.
What I want to do is position the camera so that it looks like it is inside the model's head. The first step was to make it so the initial look at for the camera points in the same direction the model is facing initially.
However, I am feeling a little uneasy about this initial rotation. Who sets this initial rotation for the model? The engine? The model itself? How can I change it, if possible?
I am sorry, but I read the first tutorial again (HelloWorld) and I could not find any references to what the initial rotation of the model is and wheter that depends on the md2 file or the engine.
Using that method gives me no guarantee of where the model will be looking at after the rotation. To know that, I must know where the model is looking at initially. And that's what I'm asking: where do I find this information?
You just load the model and check where it looks at. This simply depends on the model, nothing else. You can use a 3d editong tool to change the rotation before laoding into Irrlicht (or the meshconverter tool, which is part of the SDK).
The transformMesh method is deprecated - we all know that when we pass an IMesh to a method it will work on the mesh, and when passing a buffer it will work on that buffer. That's why the method was renamed in 1.5