ModelSkin constructor

ModelSkin({
  1. required List<int> joints,
  2. required List<Matrix4> inverseBindMatrices,
  3. int? skeletonRoot,
  4. String? name,
})

Implementation

ModelSkin({
  required List<int> joints,
  required this.inverseBindMatrices,
  this.skeletonRoot,
  this.name,
}) : joints = List.unmodifiable(joints) {
  if (inverseBindMatrices.length != joints.length) {
    throw ArgumentError(
      'Skin "${name ?? 'unnamed'}" has ${joints.length} joints but '
      '${inverseBindMatrices.length} inverse bind matrices.',
    );
  }
}