How to save and reload human motion animation

I have a code where I get the body anchors and am able to track the human motion using arkit. This is same as the wwdc sample and it works fine. My next step is to be able to record/save the human motion and replay it when needed. The replay will be in 3D animation. What are steps needed to achieve this.

How to save and reload human motion animation
 
 
Q