Idle turn animation
When my character turns, he always makes a quarter or half turn (like a lifeless object). I like to have this turn with animation. So when my character is in idle and turns (without walking) i like him to physically turn with animation. What is the best way to achieve this in AC? Should I change something in the Mecanim engine script?
Comments
Making your character turn on the spot would then be a simple matter of wiring up an animation that plays when turn is non-zero, but movement speed is zero.
I thank you a lot for your help and I tried it like you said, which in theory works but in practise not. This is because unity's Blendtree blends all the turn animations as one animation. Therefor Mecanim dev's shows us an example called "precise turn on spot". This is runned by script because it needs to calculate which animation should be played. The problem is this doesn't work very well together with AC. Is this more clear?
The v1.50 update (comimg soon) will give you the ability to change a character's Motion control variable regardless of the Animation engine used (currently it needs to be Custom before the variable is exposed).
With the variable exposed, you'll be able to change it from Automatic to Manual through script - meaning regular movement and turning will be disabled. Your own script could, in theory, disable AC's turning code when you want to make use of your own.