public DsBone(HKX.Bone hkxBone, HKX.HKASkeleton hkaSkeleton) : this() { HkxBoneIndex = hkaSkeleton.Bones.GetArrayData().Elements.IndexOf(hkxBone); Name = hkxBone.Name.GetString(); ParentName = InitializeHkxParentName(hkxBone, hkaSkeleton); }
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); }
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); }