This question was 
             closed Oct 15, 2016 at 09:47 AM by 
             libra34567 for the following reason: 
             
 
            http://answers.unity3d.com/questions/1256621/align-a-objects-rotation-to-another-object.html
 
               Question by 
               libra34567 · Oct 15, 2016 at 08:45 AM · 
                rotationanglemount  
              
 
              Align a object's rotation to another object
So i have a objectA with child MountPoint1, and objectB with child MountPoint2. Both Y axis of Mountpoints are point outwards, away from the object.
I want to mount ObjectA on ObjectB so that those two mountpoints would be pointing at each other.
The current method in my mind is to find the angular difference between those two mountpoints, and add it to the rotation of the ObjectA.
Would this be the most elegant way to do it? And if so, how do I actually apply it. (I'm pretty bad with rotations and stuff)
Any suggestions would be appreciated.
               Comment