calculateInverses method

void calculateInverses()

Generates the page:.boneInverses boneInverses array if not provided in the constructor.

Implementation

/// the constructor.
void calculateInverses() {
  boneInverses.length = 0;
  boneInverses.clear();

  for (int i = 0, il = bones.length; i < il; i++) {
    final inverse = Matrix4.identity();

    inverse..setFrom(bones[i].matrixWorld)..invert();
    boneInverses.add(inverse);
  }
}