(I think this is something which AC controls as I've looked for methods to solve this on the general Unity/Mecanim documentation.)
The situation is this:
I have a rotating "turntable" object which I have set to use an animation clip which is looping a 0-360 degree rotation.
I also have 4 static state animations for 4 different statically rotated positions. I want the player to be able to stop the turntable and have it rotate to one of these 4 positions. These static states are also in the same transform axis (rotate) as the looping clip.
I have set up action lists for each of these outcomes but I can not get Mecanim to just STOP the turntable loop and head straight into one of the 4 static points: It wants to finish the loop clip first and starts engaging the static clip at the same time. This appears to result in conflicting animation calculations and the rotation goes to a very slow crawl instead of the state desired.
My Actionlists use OBJECT: Animate to instigate each positional state.
I have tried a number of ways to stop the turntable but it seems to always want to 'complete' the anim and I see no way of stopping it's loop mid-way.
Am I doing this the wrong way altogether?
Thanks.
Comments
Are you using parameters to transition to the static clips, or choosing "Play custom" within the Object: Animate Action? If you have transitions, you may have to uncheck "Has exit time" on them.
So far as parameters go, I'd recommend using Trigger params to switch to each of the 4 states.