How to make a mesh rotate in line with camera axis and not LOCAL/WORLD axis

Hi all
I have a scenario whereas I bring a mesh in front of my camera which initially could be at an angle to the mesh. So far so good. I then want my mesh to rotate at an axis which is in-line (parallel) to an axis which is based in the direction of the camera and NOT based on it’s LOCAL (or WORLD) axis.
Here is a Playground which replicates the issue
Initially the camera is at an angle to the mesh and you need FIRST to click the button to BRING IN FRONT OF CAMERA.

You can use the camera.getDirection method to get the axis you want to rotate about:

1 Like

spasibo droug