Avindr / MxM-IssueTracking

7 stars 0 forks source link

Mixer Improvement - single loop mixer ( Has Exit Time) #107

Open Craigjw opened 3 years ago

Craigjw commented 3 years ago

Some animation assets have missing Starts for diagonals, most notably with strafing. In Mecanim, we can fudge these reasonably well by creating a Blend Tree mixer for the Start Strafe Forward/Back/Left/Right and having another Blend Tree mixer with the Walking loops for Forward/Back/Left/Right. We then create a transition from the Start Walk mixer to the Walking Loop Mixer which has the "Has Exit Time" enabled. When the Start Walk mixer state is entered, it then plays the mixer blended animation for the appropriate direction and when this has finished a single animation cycle, it automatically transitions smoothly to the walking loop mixer.

A system that could simulate this would be a huge benefit to MxM and would help to bridge the gap left where various animation assets do not have particular animations such as Start Strafe diagonals which MxM requires in order to create smooth and fluid character movement. This system would be very useful elsewhere, where we need to blend other single loop animations between various clips within a coordinate space.

Avindr commented 3 years ago

I think the solution to this is the same as the solution to #106

Implementation of a composite that can have a smooth blend to 'after animations'. This is planned for v2.10 (update after the one I'm dropping today)