getMatrixAt method
index
- The index of an instance. Values have to be in the
range 0, count
.
matrix
- This 4x4 matrix will be set to the local
transformation matrix of the defined instance.
Get the local transformation matrix of the defined instance.
Implementation
Matrix4 getMatrixAt(int index, Matrix4 matrix) {
return matrix.fromNativeArray(instanceMatrix!.array, index * 16);
}