I know that this has already been asked multiple times, but I cannot get an answer for this very specific problem I have (at least, this is what I think, comparing it to the other problems).
I’ve made a model with one animation (“walk”). (both the model and the animation created in blender)
I import my model into Unity and I add an animation component to the model, where I choose my walk animation. I preview it at the animation preview window, and everything seems just fine.
Now, I position my model to its starting position, facing to the direction I want it to, and when I push the forwards button it does the animation correctly, but to the wrong direction (while the character moves forwards (as I’ve programmed it to do in my script), the animation plays sideways) and also, it begins doing it from the beginning, while the animation loops (the character moves two steps back instantly and replays the animation from there).
Please note the following important points:
- At the animation I created in Blender, the position of the model changes (as in a tutorial I followed for blender animation), it doesn’t stay static with the whole movement being done in one position.
- I have parented my model to an empty object which contains all the needed scripts that control the movement of the character, the Character Controller etc.
- When I import the model into Unity, (I know that Ζ=Up for Blender while Z=Forward for Unity) it doesn’t have the right rotation, so I rotate it and place it to the initial position. But, once I start the game, it takes the rotation of the animation, even before I move the character so as to let the animation play.