I have several player-controllable characters. Their animations are driven by root-motion. During some periods of the game, all the characters follow the character that the player is currently controlling. The characters each move at different speeds, and I want to make it so the group all walks at the speed of the slowest character in the group.
I have tried various methods of trying to calculate the average root-motion speed of each character, finding the slowest, then applying the % difference as an animator parameter to affect the playback speed. But, none of my attempts work that well.
Any ideas? Thanks.