So, I have
X and Y game objects. I have a vector
Z = X - Y which is indicated by the green line.
Also, I have a
Parent game object and it has a
Child game object. How do I move the parent such that the child game object is at the
Z -= new Vector3(child.localPosition.x, 0, child.localPosition.z); Parent.transform.position = Z
which is not working as expected. Thank you!