Im trying to create a script that aligns objects to the normal of a face (this will be part of a modal opperator). I get a ray cast hit location and the normal of a corresponding face which works fine. So the normal vector is correct.
So the question is: how to align the rotation of an object to a given vector (in this case the normal vector of a face)?
Bear in mind that even if it will orient the object to that vector, you’ll be still missing the rotation around the vector. But you can look on that latter if needed …
The issue you’re having is that Euler takes tree angles in radian rather than a direction based on location.
Good luck !