Facet Rotation and Normal Direction in Euler World Space

I want to place a disc on a mesh facet when a user clicks on it. I can get the the facet point from either the pickResult or the Facet data but I can’t get the rotation. I’m trying to use the normal to get the rotation by calculating the angle between the picked point and the normal and rotating 90 degrees and its kind of close. Ideally I would like to get the facet rotation in world space and direction of the the normal into the mesh at a facet in Euler x,y,z. Thanks

You should check this post: How can I make a mesh sit on the surface of another mesh?

It is providing the solution to exactly what you are trying to achieve with the associated code

Thanks, looks just right

2 Likes