By rammmm
on Thu, 05/15/2014 - 16:53
Hello,
i am just very new to AR and it's the first time for me to use Vuforia and Unity. I have imported the sample User-defined targe package to unity and the sample does run successfully.
However, i would like to make the object stick on the target and rotate whenever we rotate the targert. Since I am not very familar with Unity, can I know the detailed steps of how to finish this?
Thanks in advance.
Ram
how to let the object rotate together with the target?
Make sure your object is a child of the ImageTarget, then it should gain it's position and rotation automatically from the orientation of the tracker image.
how to let the object rotate together with the target?
Thanks for your reply. It makes me understand how to finish it more.
But I am really sorry that I still cannot make my way out, since I am very new to Unity and Vuforia.
Would you mind provide me some examples or even exact coding?
Ram
how to let the object rotate together with the target?
To make your game object a child of your ImageTarget, just drag the object onto the target.
In the Hierarchy, your game objects should be listed underneath the ImageTarget when they are childeren of the ImageTarget.