No announcement yet.

Synchronize animations between actors

  • Filter
  • Time
  • Show
Clear All
new posts

  • Synchronize animations between actors

    While making a horse actor I realised that I don't know how to play it's animations synchronously with the rider. That ones with PlayCustomAnim are simple to make, but what about walking and running animations? Rider is attached with SetBase and technically does not moves. Animations could be toggled with a custom animnode, but how to be sure they are synchronized with horse's animations shown on this screenshot?

    Click image for larger version

Name:	animtree.png
Views:	1
Size:	17.6 KB
ID:	1216703

  • #2
    I was using notifies in the horse animations to play animations on the player. I'm using two animnodes to mix the animations, so there are no hitches.

    But it seems a "brute forze" way to do, I want to try with the syncronize groups, but still I don't know if they will work with two diferent actors and two diferent animtrees.
    Provisional blog:


    • #3
      The problem is ScaleRateBySpeed nodes that continuously change animation rate, so even if I start playing rider's animation at the same time, I cannot tell which rate it must have at every tick.


      • #4
        I made a setup that detects a change of horse's animation and replicates it to rider pawn. A custom anim node that passes OnBecomeRelevant() to pawn class did the trick.

        Then I tried to get the play rate of anim node sequence with GetGlobalPlayRate(). The description said it will take into account all rate scales applied to this animation, but as appears, it ignores ScaleRateBySpeed node and simply returns 1.0.
        Well... is there a simple way to get play rate of animation after it's being modified by ScaleRateBySpeed node?