Orient/poisition object based on known positions
I don't quite know how to word this question, so I apologize. That said, I have a complex GameObject that I want to align in the scene based on 3 or more known points.
Another way to say this would be to say that I have two triangles and I want to overlay triangle two on the first. I want to align point 1 to point 1 and so forth.
could you explain again how this should work with less or more than 3 points? with 3 you'd only need one gameobject. With more, if not matching parts of your gameobject perfectly, you'll get offsets at certain points, or distortion if you want that.
Depending on the problem, is crude trick is to place an empty at the "mount point", then child the object to it - that temporarily moves the object's origin to the mount point. Then place the mount point and unchild.
The other way, which is more versatile once you know it, is to learn quaternions and vector math.
Your answer
![](https://koobas.hobune.stream/wayback/20220612100930im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Orienting a instanced Objects long-axis to the same point 1 Answer
Instantiating a GameObject relative to another object's position and rotation 1 Answer
I want to place placement pose indicator on both vertical and horizontal plane in Ar foundation 0 Answers
Selective Mobile screen rotation 1 Answer
Is it possible to restrict screen auto-orientation on a single scene? 1 Answer