Advice on animation and actions

Hi there,
in this PG what i want to achieve is:

  • when the user rotates the camera all the tiles stands still facing the camera (or follows the camera, depends by the point of view :slight_smile: )
  • when the user clicks on the red tile, all the other tiles are free to move and rotate by one step

I use a boolean variable block and i check it inside the BeforeRenderObservable. All work fine if i comment out line 188. But if i leave it the animation doesn’t work. I don’t understand why.

Any suggestion?

because once you have called rotate in before render, the mesh is having a rotationQuaternion which has the priority over the default rotation you are animating.

1 Like

Thank you, got it :+1: