private void addSkeletonToBuffer() { if (currentSkeleton != null) { SkeletonBuffer.Add(currentSkeleton.Name, currentSkeleton); } currentSkeleton = new AcclaimSkeleton(); }
public SkeletonJoint(AcclaimSkeleton skeleton) { acclaimSkeleton = skeleton; _B = Matrix4x4.Translate(Vector3.zero); C = (Axis * Mathf.Deg2Rad).Euler2Mat(); CInv = Matrix4x4.Inverse(C); Debug.Log(Name + "\n" + C.ToString() + "\n" + CInv.ToString()); }
private DictionaryEntry CreateRootJoint() { AcclaimSkeleton root = new AcclaimSkeleton { Id = 0, Name = ROOTKEY }; return(new DictionaryEntry(ROOTKEY, new SkeletonJoint(root))); }
public ASFReader(string asf_path) { asf_data = ReadLines(asf_path); currentSkeleton = new AcclaimSkeleton(); SkeletonBuffer = new Dictionary <string, AcclaimSkeleton>(); ASFHierarchy = new Dictionary <string, string[]>(); DOFMap = new Dictionary <string, int> { ["rx"] = 0, ["ry"] = 1, ["rz"] = 2 }; }