That’s a link to a clip I made since I thought it’d be easier to convey my question that way. Pretty much I show I have three animations. One shooting, one turning around and one walking. Well the problem is after the second clip where the character turns around the third animation is pointing in the wrong direction (I guess that’s the best way to put it) so the character turns and then turns again as opposed to just turning and walking. So I guess I need to somehow edit the third animation clip but I’m not sure what I need to do. This will be a NPC so I need no control over him I just need him to turn and then have the next animation somehow tweaked so he walks in the correct direction as opposed to turning back around before walking. Thanks to anyone who can help.
hey there.
It seems from your video that your animations are not using Root Motion.
You can tell because the red arrow in the preview pane of your animations doesn’t move to reflect the new orientation of your characters.
If you want the direction to be “right” after an turning/rotating animation, so that when the walking/running animation kicks in, the character moves in the “new” direction, your best option may be to simply use animations with Root Motions.
You can read more about Root Motion in the unity docs.
Also, if you don’t know how to build root motion animations yourself, I suggest you get the animations you require on Mixamo.com; it’s free, good quality, and should provide a decent base for a ton of basic movements, all with Root Motion, and you can apply those animations to pretty much any normally proportioned humanoid model you like.
Keep in mind that the different options after you import an animation are very important to the way Unity will handle the position and rotation of a character - also check stuff like the avatar you use for your characters. Most likely, it needs to be Humanoid for stuff to work correctly.