Hi all, I’m using mecanim and animations “Runs”, with Unity 3 normally i apply more force to the character controller for more speed, but now I think it’s different with mecanim. How can I have a greater shift keeping the animation time?
Sorry for my english. Thanks, Paki.
Landern
November 19, 2012, 2:15pm
2
pascalbros:
Hi all, I’m using mecanim and animations “Runs”, with Unity 3 normally i apply more force to the character controller for more speed, but now I think it’s different with mecanim. How can I have a greater shift keeping the animation time?
Sorry for my english. Thanks, Paki.
Animator.speed seems to be where it is at, default is 1.
Animator.speed change the speed of animation, but i would to change the shift, like “AddForce” in Unity3 and character controller. Thanks.
Solved!
//C#
CharacterController controller = GetComponent();
float multiplier = 3.0;
deltaPosition.x = deltaPosition.x * multiplier;
deltaPosition.z = deltaPosition.z * multiplier;