Log in or register to post comments

Once event for multiple targets happens, it doesn't occur anymore

March 15, 2019 - 11:13am #2

Hello

Sorry i am kind of newbie in Vuforia and Unity, but i already have some experience!

I am trying to make reading cubes for kids attractive again

The idea is simple - when combined C,A,T together - the cat appears and meows.

The problem is - it works always only once and i have to move the carton cards really careflly close to each other.

I tried many values for distance, but it works the same.

Could anyone help to improve the "sensitivity" in my code and correct something in the code so that the cat always appears for combination CAT, but not only once.

AttachmentSize
Image icon 5.jpg269.48 KB
Plain text icon script.txt1.5 KB

Once event for multiple targets happens, it doesn't occur anymore

March 21, 2019 - 7:34am #1

You probably should also check the CurrentStatus of the ImageTarget Behaviours to make sure the targets are tracked when you do the distance comparisons. If the targets are not tracked, the augmentations won't be rendered, but more importantly, their pose (position) will not be correct.

There also seems to be an inconsistency with the way you activate and deactivate the letters (they'll be set to true every frame).

 

Log in or register to post comments