syncWith() function of AnimationAction

Can anyone please explain what is the use of syncWith in threejs AnimationAction. As In documentation it’s showing to Synchronizes the action with other passed action and I tried it’s not working. And Please tell how to use this.


What do you mean with not working? Can you please explain a bit?

An instance of AnimationAction is responsible to play an animation clip. Hence, an action has a time property which represents the current (local) time of the playback. It lies in the range [0, clip.duration]. When you call AnimationAction.syncWith(), the time and timeScale property are set to the values of the given action. The method also stops any ongoing warping in order to ensure a consistent effective time scale. That means both actions are now synchronized (since they have equal time values from this point).

1 Like