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 https://www.babylonjs-playground.com/#TRAIXW#40
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