Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have a rigged and animated mesh that I need to import into Unity. We several characters that all use the same script, and access their bones to do procedural animations as well.

The problem is that the new model I was given is facing the wrong way. Instead of facing forward, the model is facing the right..

Is there any way to rotate the model with it's animations without screwing it up, so that it will import properly in unity facing forward?

Because of the way it was done, selecting everything in the scene and just rotating it by 90 degrees ruins some of the animations, so I need a program that can fix this.

share|improve this question
1  
What package was the model exported from? Most 3d authoring packages provide a way to specify whether Z or Y is the up axis. If that's the case, you might just be able to re-export the file with the appropriate axis set. – K.G. Mar 20 '12 at 4:32
it's from 3ds max, but the FBX Exporter only gives the option of Y-Up or Z-Up =/ I would basically need a program to convert everything to negative-X forward. – Al Bundy Mar 20 '12 at 4:42
2  
I think the model will have to rotated in the 3D modeling software. If it's properly rigged, then the master control curve will take care of this in one operation. – ktodisco Mar 20 '12 at 7:36
Thanks for everyone's input, but I did end up having to do this in code. The rig may have been able to be rotated, but what I was working with was a model that had been exported to FBX and baked, then reimported back into max.... I had a friend try to help me get everything hooked up to the root so it could be rotated, but it was a no go =/ – Al Bundy Mar 21 '12 at 2:55
Did you try to rotate it in the LateUpdate loop? If not, try it out. – jonas Apr 15 '12 at 7:55

1 Answer

Select only the root of bones and rotate it 90 degrees when not in animating mode (auto key disabled).

share|improve this answer
Worth noting that it should be done in 3DS Max, not Unity. – psycketom Jul 17 '12 at 13:26
Well, rotating root in 3ds MAX works fine for me, no animations ruined, and rotates everything propertly. Maybe the problem is that I don't realy understand what you want. – Rytis Buzzy Jul 17 '12 at 13:47
@Rytis Buzzy. May you show how do you do it? Same issue for me. Thx!! – user25862 Feb 2 at 8:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.