- Home /
How can I sync animations between two avatars using the same animator controller?
Greetings.
As it stands, I have two avatars that are sharing an animator controller as they are functionally identical. They are in the same scene and I need to synchronize their movements exactly. Currently, I have an idle state and the state with the animation, and when a trigger is hit the animation is supposed to start for both avatars. Currently, however, one starts a noticeable amount of time earlier than the other. The animation is fairly long (measured in minutes, not seconds) and has exaggerated movements so it's very noticeable.
If anyone can give me some tips, I would appreciate it.
That is weird. Does the trigger method have animator set variable calls for both of them? If so, they should practically be in sync (at least in perfect sync to our eyes)
Thanks for the reply. They both operate off the same controller and thus the same trigger. Each one has a script attached that sets the trigger on a keydown event (checked for in the update event). I figured they should start at the same time since they're operating off the same trigger, and they did at first, but as the scene became more complex I noticed them getting more and more off sync. The animation playback is smooth, and it seems like a flat offset from one another - but the offset seems variable so I can't just compensate by delaying one. The delay is easily 100-200 milliseconds.