Skeleton constructor

Skeleton([
  1. List<Bone>? bones,
  2. List<Matrix4>? boneInverses
])

bones - The array of bones. Default is an empty array.

boneInverses - (optional) An array of Matrix4s.

Creates a new name.

Implementation

Skeleton([List<Bone>? bones, List<Matrix4>? boneInverses]) {
  this.bones = bones!.sublist(0);
  this.boneInverses = boneInverses ?? [];

  init();
}