fromJSON method
dynamic
fromJSON(
- dynamic json,
- dynamic bones
Implementation
fromJSON(json, bones) {
uuid = json.uuid;
for (var i = 0, l = json.bones.length; i < l; i++) {
var uuid = json.bones[i];
var bone = bones[uuid];
if (bone == null) {
print('THREE.Skeleton: No bone found with UUID: $uuid');
bone = Bone();
}
this.bones.add(bone);
boneInverses.add(Matrix4().fromArray(json.boneInverses[i]));
}
init();
return this;
}