- Home /
How to make an augmented reality marker get dragged in the scene?
Hi guys, I've been trying to make a character move using an augmented reality image tracking. So the image will act as the pointer to where the character will move.. Now the problem I have is that when the camera detects and generate through the image tracker doesn't matter how you move the image tracker it will always stay in the transform where I set it in so the character can't detect the pointer is moving. Is there a way to make this image get dragged in the scene as i dragged the marker through camera?
Thanks in advance.
Answer by ArcaneAura · Apr 05, 2018 at 01:33 PM
Do the following should help you out:
Create a transparent "cube" game object under your image target object.
Determine how and where you want to spawn "the character"
In update, implement, if both "character" and "cube" are active, character.position --translate to--> cube position.
:)
Your answer
![](https://koobas.hobune.stream/wayback/20220612155800im_/https://answers.unity.com/themes/thub/images/avi.jpg)