Question by
Minister_of_Rock · Mar 31, 2020 at 01:44 PM ·
c#animationhumanoid
How to make an animation clip for a humanoid, with a text file, via script?
I have a text file with Coordinates of the Joints and Extremities (Right toes, right ankle, right knee, ...) and Joint angles (x,y,z). For now I can read the text file and using the AnimationClip.SetCurve I can add the keyframes to the Clip. But several problems come up:
The file has world positions and the AnimationClip.SetCurve uses local postions.
I'm not sure that using the tranforms of the joints is the best way or if I should use the animator properties instead.
My Humanoid gets desrtoyed if I play the clip. My question is if AnimationClip.SetCurve is the best way to use the values I have to animate a Humanoid and if not, what is?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612230152im_/https://answers.unity.com/themes/thub/images/avi.jpg)