0
\$\begingroup\$

 a

  1. This 3D mesh is rotated by 45 degrees on the Y-axis.
  2. The camera follows the same rotation, resulting in these images
  3. Now I want to make the mesh rotating parallel to the camera. That is, if the rotation of both were (0, 0, 0), obviously I would only need to add a rotation in the X-axis of the mesh. But as the mesh is at 45 degrees, how to proceed?

I think this would be equivalent to rotating the gizmo 45 degrees before running the second rotation, but I do not know how that is possible.

My request is simple: what lines of code would I need to perform for this? (Please, as I said before, I will learn from the code example).

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.