Rotate object so as to make specific face horizontal.
Hi all ! Help wanted !
Is the following logic correct ? New in scripting!!!
1. Let's say we have an object with many faces and random rotation
2. And we want to rotate the object so as to make one selected face be on the horizontal level (like align to horizontal).
3. We get the facenormal for that face and get the matrix3 for it
4. We rotate the main object by using matrix3 according to the matrix3 of the face
Does it make any sense ? Is there a better way to try this ? Can anyone help ?
Question: Is it better to connect matrix3 data of the whole object with plain object rotation, angle and one vector? Is it possible ?
That's it for now !
Thank you all