Hi there, So I've been using mecanim which makes your character move as fast as you did in maya, which obviously helps in preventing sliding. I was wondering if it is possible to make it work the other way around. So it makes the animation play faster or slower depending on how much the character's position changes? So make the objects movement dictate the animation, rather than the animation dictating the object's movement. As I do like to control the character through scripting.
You can create a blend between two motion fields on the same animation clip, set with different speeds. In your script, you just change the float parameter that it blends upon. For the float parameter, use a value that represents how much the position needs to change.
Wouldn't making the animation play faster or slower also cause a change in the characters position(assuming root motion is used)? Perhaps you want the old legacy animation system where you play a simple animation and programmatically tell your character where and how fast to go regardless of the animation being played.
That's exactly what the blend I suggested would do. It would blend somewhere between slow and fast versions of the clip. But, as jRocket suggests, perhaps you really want to remove root motion from your clips and control everything manually through the legacy system.