/// <summary> /// Converts an Animation_data object to an array of Vcl.Utilities.IHumanoid. /// </summary> /// <param name="data">The animation data.</param> /// <param name="hums">The Vcl.Utilities.IHumanoid array.</param> public static void From_animation_data(ref Animation_data data, out IHumanoid[] hums) { hums = new IHumanoid[data.getLenght()]; for (int i = 0; i < data.getLenght(); i++) { hums[i] = From_HBP(data.name, data.GetFrame(i), i); hums[i].SetInfo("frameNumber", i.ToString()); hums[i].SetInfo("timestamp", (i * 30).ToString()); } }
public void SetRecordedAnim(Animation_data recorded_motion) { Debug.Log("2 Anim lenght: " + recorded_motion.getLenght()); _recorded_animation_player.SetAnimationDataRef(recorded_motion); }