Synchronized AnimationPlayer
Hi. How's it going? Is there any ideas or instructions for sync-ing AnimationPlayer?
Hey @RickyYCheng, We've been discussing this over Discord. The good part is that AnimationPlayer seems doable, animation trees much more difficult. Anyway, let me copy my earlier message on the topic:
so for rollback you need to be able to do three things: snapshot the thing's current state, setting that state, and manually advancing it by a single frame
for animation player the current state is its current animation and how far are we into playing it. we can grab the state from current_animation and current_animation_position
and we can set that state using play() and seek(), and then advance it with advance()
for animation tree, there's multiple nodes each with their own state, so you'd need to capture each node and their state ( inputs, outputs, parameters, etc. ) and then reapply that for each resimulated tick. but at least for advancing it you have the same advance() method.
so actually it might be possible, just very, very unwieldy to implement