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