getEqualsBonesNames static method
List<Bone>
getEqualsBonesNames(
- Skeleton skeleton,
- Skeleton targetSkeleton
)
Implementation
static List<Bone> getEqualsBonesNames(Skeleton skeleton, Skeleton targetSkeleton) {
final sourceBones = getBones(skeleton);
final targetBones = getBones(targetSkeleton);
final List<Bone> bones = [];
search:
for (int i = 0; i < sourceBones.length; i++) {
final boneName = sourceBones[i].name;
for (int j = 0; j < targetBones.length; j++) {
if (boneName == targetBones[j].name) {
bones.add(targetBones[j]);
continue search;
}
}
}
return bones;
}