Hello,
I'm having an issue with my player turning about its Y axis when walking to a navigation marker.
I'm using Mecanim to animate my player. I can stop the turning if I set turn speed to zero, but when I do this the player's transition to the walk animation doesn't happen until nearly the end of the walk. In the meantime he slides, and the animation controller's Speed float is all over the place.
With turn speed set to 1,
here's what it looks like. You can see how the player has turned 90 degrees on the Y axis during the walk from player start to the marker.
Any ideas on how to deal with this would be much appreciated. Thanks!
Comments
Is this a 2D game you're making? You will need to set your character's Animation engine to either Sprites Unity or Sprites Unity Complex in that case - see Sections 3.6 and 3.9 of the Manual. If you want to control the character's animation with a blend tree, Sprites Unity Complex will be the option you want.
You will then need to move your character sprite to a child of the root object, and assign this in your Player Inspector's Sprite child field. Regardless of perspective, AC's characters have to turn on the y-axis in 3D space, so the sprite child is counter-rotated to keep the graphic facing the camera.
You should definitely go through the 2D tutorial if you haven't already, and you can also use the Character wizard (available from the top toolbar, Adventure Creator -> Editors -> Character wizard) to have AC create a character for you and put the correct components on the correct objects.