Doors are not animated.
Rather than frame animation stored in a file, the engine seems to control it by using the orientation of the root node of the model.
The node orientation then dictates the direction in which the door will open.
Changing the direction requires rotating the root node and then rotating the model mesh node to obtain a properly positioned model.
It can all be done with the GMT.
Let take the "dungeon_secret_door" model as a reference.
We can find the following position matrix in the nodes tab for this model.
This setting will make the door goes up.
Keep this in mind if you want to reset the model.
If you want to change this you can apply one of the following rotation to the root node :
Code: Select all
For the root node:
-- door up : default
-- door left : Y -90 then X -90
-- door right : Y -90 then X -270
-- door down : X -180
For the mesh node:
-- door up : default
-- door left : X 90 then Y 90
-- door right : X 270 then Y 90
-- door down : X 180
The mesh will rotate as well and the model will be messed up at this point.
To correct this and get a proper orientation for the model you will have to use and apply opposite values for rotating the mesh node.
For single doors it should be named
gate.
Be aware that the values I propose are not 100% sure, I've only determined those by testing but I may be wrong.
Using this kind of transformation I was able to make single door models open down, left or right.
Edit : Added info for the mesh node rotation.