In Maya: I have a tube whose pivot is on a plane that is rotated but the pivot does not lie on a vertex. I want to rotate the tube around its pivot so it is perfectly aligned with the normal vector of the face nearest to the pivot of the tube.
I tried to do get the normal of the face with a closestPointOnMesh(you can find it under Constrain > Closest Point), but I could not get it to work. I would like to not use normalConstraint and deleting it afterwards because they are quite slow and I plan to do it on a lot complex objects.