FromCollada() public static method

public static FromCollada ( node bone, int parentIndex, List bones, Bone>.Dictionary boneSIDs, Bone>.Dictionary boneIDs ) : Bone
bone Collada141.node
parentIndex int
bones List
boneSIDs Bone>.Dictionary
boneIDs Bone>.Dictionary
return Bone
Beispiel #1
0
        public static Skeleton FromCollada(node root)
        {
            var skeleton = new Skeleton();

            skeleton.Bones      = new List <Bone>();
            skeleton.LODType    = 0;
            skeleton.Name       = root.name;
            skeleton.BonesBySID = new Dictionary <string, Bone>();
            skeleton.BonesByID  = new Dictionary <string, Bone>();
            Bone.FromCollada(root, -1, skeleton.Bones, skeleton.BonesBySID, skeleton.BonesByID);
            return(skeleton);
        }