setBoneTransform method

  1. @JSExport()
JSPromise<JSAny?> setBoneTransform(
  1. ThermionEntity entity,
  2. int boneIndex,
  3. JSArray<JSNumber> transform,
  4. int skinIndex,
)

Implementation

@JSExport()
JSPromise setBoneTransform(ThermionEntity entity, int boneIndex,
    JSArray<JSNumber> transform, int skinIndex) {
  return viewer
      .setBoneTransform(
          entity,
          boneIndex,
          Matrix4.fromList(
              transform.toDart.map((v) => v.toDartDouble).toList()),
          skinIndex: skinIndex)
      .toJS;
}