public SerializedHumanPose DeepCopy() { SerializedHumanPose n = (SerializedHumanPose)this.MemberwiseClone(); n.muscles = new float[this.muscles.Length]; this.muscles.CopyTo(n.muscles, 0); return(n); }
public static SerializedHumanPose New() { var n = new SerializedHumanPose(); n.bodyPosition = Vector3.zero; n.bodyRotation = Quaternion.identity; n.muscles = new float[HumanTrait.MuscleCount]; return(n); }
public void Add(long videoFrame, ref SerializedHumanPose pose) { if (keys == null) { keys = new List <long>(); } keys.Add(videoFrame); if (poses == null) { poses = new List <SerializedHumanPose>(); } poses.Add(pose); samples++; }
public HumanPosePosture(string name) { this.name = name; this.pose = new SerializedHumanPose(); }
public HumanPosePosture(string name, ref HumanPose pose) { this.name = name; this.pose = new SerializedHumanPose(ref pose); }