setTransform method

Future setTransform(
  1. ThermionEntity entity,
  2. Matrix4 transform
)
override

Implementation

Future setTransform(ThermionEntity entity, Matrix4 transform) async {
  final ptr = allocator<Float>(16);
  for (int i = 0; i < 16; i++) {
    ptr[i] = transform[i];
  }
  set_transform(_sceneManager!, entity, ptr);
  allocator.free(ptr);
}