Apply Rotation to All Instances

Hello everyone,

In the PG below, I created an array of instances, then tried to apply an animation to all of them. However, only the original instance is affected, and I’m not sure why that is.

https://www.babylonjs-playground.com/#8L50Q3#18

Here is an example where this works:

https://playground.babylonjs.com/#21QRSK#17

Small mistake here:

boxArray.push(box); should be boxArray.push(instance);:

https://www.babylonjs-playground.com/#8L50Q3#19

1 Like

Excellent, thanks! :smiley: :+1: