- Home /
Question by
PJ_Rocks · Nov 10, 2019 at 04:59 PM ·
rotationtransformpositionchild-to-gameobject
Align objects based on child objects
Hello. I've been struggling to alight two objects (train track) so the rails meet. I have created ConnectionPoints (CP1 & CP2) as child objects of the train track. How would I set the position and rotation of the curved rail, the one I'm moving, so that it's child (CP2), is aligned with the child of the straight track (CP1), making them "snap" together.
I tried the solution in link text. While the tracks touched, the curved track was not rotated correctly.
Thank you!
capture.png
(399.1 kB)
Comment