"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Track two target images with looking position

Hi,

I have two target images:- Turtle (With Cube Object)

- Fish (With Sphere Object)

 

My questions are:

1. Is it possible to assign sides(north, west, east, south) or directions to target images?

2. If it is, how can I make so that when turtle(north side) is facing Fish(north side) an animation will appear?

3. If it is not possible, then are there any other way that's similar to this?

 

What I've tried:

1. Add another script(same with DefaultTrackerHandler) with a few modification(OnFound and OnLost) so that if both fish and turtle are both found it will produce a log("Turtle and Fish")

2. Adding SmoothLookAt() script to both Fish and Turtle, add Cube to Fish, add Sphere to Turtle(As SmoothLookAt() target), but it doesn't work

3. Tracking by distance(this works..but image target does not have directions)

 

Ideas:

1. I've read that in unreal engine there's a function(I think it's singleline something) so if the line hit an object it will do something

Maybe we can use this in unity..? Maybe make the image target shoot something and if it hits a collider of another image target at north side it will show an animation

 

Thank you very much