getBone method

  1. @override
Future<ThermionEntity> getBone(
  1. ThermionEntity entity,
  2. int boneIndex, {
  3. int skinIndex = 0,
})
override

Gets the entity representing the bone at boneIndex/skinIndex. The returned entity is only intended for use with getWorldTransform.

Implementation

@override
Future<ThermionEntity> getBone(ThermionEntity entity, int boneIndex,
    {int skinIndex = 0}) async {
  var result = await _shim.getBone(entity, boneIndex, skinIndex).toDart;
  return result.toDartInt;
}