Blender to Unity?

Hello all. I made a simple weapon model in Blender and when I import it some of the axis’s (is that a word?) are not right. For example, the “Y” axis (which should be pointing up from the game object if I’m right) is pointing down. The red arrow is pointing from the butt to the barrel of the gun, the green arrow to the right of the gun, and the blue arrow pointing down from the gun.

I Googled this problem and this was all I could really find:

http://forum.unity3d.com/threads/97119-Z-and-Y-Axis

I tried what the post with the screenshot said to do, but that just flips to gun on it’s side as default and screws up the arrows even more. Is there something you have to do to a model in Blender before exporting it for it to work in Unity? Lastly, I tried .fbx and .dae files and both end with the same result. Has anyone has this problem before? If so, how did you fix it?

Thanks for all responses in advance.

Thats because Blender uses Z and Unity the Y-Axis as up. So what I do in Blender is, I go into Editmode, select all and rotate it around the x-axis by -90. Now it should import just fine, but is rotated “wrong” in Blender itself. So I go back into Objectmode and rotate it along the x-axis by 90.

“axes” (‘AXE-ease’)

Blender’s FBX exporter should have an option to rotate on export (I know it does in 2.49, but not sure about 2.5). If not, the rotate-export-rotate solution, while a little annoying, will work.

It has. Just have a look at the export options.