pose method
void
pose()
Implementation
void pose() {
// recover the bind-time world matrices
for (var i = 0, il = bones.length; i < il; i++) {
var bone = bones[i];
bone.matrixWorld.copy(boneInverses[i]).invert();
}
// compute the local matrices, positions, rotations and scales
for (var i = 0, il = bones.length; i < il; i++) {
var bone = bones[i];
if (bone.parent != null && bone.parent is Bone) {
bone.matrix.copy(bone.parent!.matrixWorld).invert();
bone.matrix.multiply(bone.matrixWorld);
} else {
bone.matrix.copy(bone.matrixWorld);
}
bone.matrix.decompose(bone.position, bone.quaternion, bone.scale);
}
}