getWorldTransform method
Implementation
Future<Matrix4> getWorldTransform(ThermionEntity entity) async {
final ptr = allocator<Float>(16);
get_world_transform(_sceneManager!, entity, ptr);
var data = List<double>.filled(16, 0.0);
for (int i = 0; i < 16; i++) {
data[i] = ptr[i];
}
allocator.free(ptr);
return Matrix4.fromList(data);
}