Log in or register to post comments

Move 3-D objects on screen irrespective of image target

November 16, 2017 - 9:42am #1

I'm working on a game in which I have a main character that shows when its corresponding image target is detected. Once this character is on screen, if I bring in any other object via another image target, I want my character to start walking towards that object. 

How can I achieve this? I have managed to turn on the animations and detect and report when other objects are detected but I get stuck when it comes to getting the position of both the character and the object and moving one towards another. 

Move 3-D objects on screen irrespective of image target

November 21, 2017 - 3:53pm #2

Hello praptiverma,

The transforms of the Image Target game objects represent their location within the Unity world. Once you detected both the target for your main character and your object, you can use the Image Target transforms of each target to determine which direction to move your character towards.

Thanks,

-Vuforia Support

Log in or register to post comments