How to force immediate state transition using mecanim?

Hi,

I have a horse that goes from standing still (idle) to galloping, using the mecanim animation controller to create a transition from the idle animation to the galloping animation. The problem is, my character moves about 5 feet without the galloping animation “kicking in” so-to-speak. So my horse magically glides across the ground without moving its feet for about a second or two lol.

How can I make my horse start galloping right away?

In your controller, click on your transition and then in the inspector you can adjust the blending time to make it shorter. You can also preview it.

“You can adjust the transition between the two animation clips by dragging the start and end values of the overlap.”

https://docs.unity3d.com/Documentation/Manual/AnimationTransitions.html

Let me know if that fixes your problem, otherwise I will suggest something else but could you answer these questions then :

-When the horse moves is the horse in idle animation or is it in galloping animation but stuck in the same frame ?
-When the horse moves are you the one moving it programatically or is it root motion moving it ?
-How do you start your transition, by using a trigger?

Hi Alf,

Thank you very much for the reply. I will try your first suggestion when I have time (hopefully tomorrow) and if it doesn’t work I’ll post back. Thank you very much for the help.

Btw, I used to watch Alf and I loved that show. Your user pic brings back the nostalgia :slight_smile:

That worked great. Thanks Alf! That’s what I was looking for, and I’m glad they have a tool to deal with that. Thanks for pointing me in the right direction.

No problem. Gad it worked for you ! Yep, a visual tool for adjusting blending is rather nice.