PG: ThinInstance & WorldMatrix | Babylon.js Playground (babylonjs-playground.com)
Hi, I have not been able to understand how to play with globalMatrix and ThinInstance.
I have more complex scenes but here i have reproduced one with just 9 cubes.
I create the array of all the worldMatrix of those 9 cubes.
I try to apply this array to a thinInstanceAdd but the result is not coinciding with the original scene.
If you comment line 53 ( matchingMeshes[i].dispose(); ) you can see the original meshes.
I have made a check of each matrix of the original meshes vs the thininstance, and the console shows 9 are ok, 0 are not.
Any help is appreciated!
This is an example applied to Petals. Original Meshes
Those are the thinInstances with worldMatrix applied
Thanks so much
(This is my first post, sorry for any non compliance