Exemple #1
0
        public DsBone(HKX.Bone hkxBone, HKX.HKASkeleton hkaSkeleton) : this()
        {
            HkxBoneIndex = hkaSkeleton.Bones.GetArrayData().Elements.IndexOf(hkxBone);

            Name = hkxBone.Name.GetString();

            ParentName = InitializeHkxParentName(hkxBone, hkaSkeleton);
        }
Exemple #2
0
        private string InitializeHkxParentName(HKX.Bone hkxBone, HKX.HKASkeleton hkaSkeleton)
        {
            short hkxParentBoneIndex = hkaSkeleton.ParentIndices.GetArrayData().Elements[HkxBoneIndex].data;

            if (hkxParentBoneIndex >= 0)
            {
                HKX.Bone hkxParentBone = hkaSkeleton.Bones.GetArrayData().Elements[hkxParentBoneIndex];

                return(hkxParentBone.Name.GetString());
            }

            return(null);
        }
Exemple #3
0
        public DsBone(FLVER.Bone flverBone, FLVER2 flver, HKX.Bone hkxBone, HKX.HKASkeleton hkaSkeleton) : this(flverBone, flver)
        {
            HkxBoneIndex = hkaSkeleton.Bones.GetArrayData().Elements.IndexOf(hkxBone);

            ParentName = InitializeHkxParentName(hkxBone, hkaSkeleton);
        }