Calculate which targetInstance is in center

+1 vote
asked Apr 24, 2018 by sullemandi (220 points)
Working on Android.

In my render method i would like to calculate which of the tracked targetInstances is closest to the center, so that I'm always only using one target - the one in the center.

Thanks!

1 Answer

0 votes
answered Apr 25, 2018 by albert52 (31,850 points)
So do you want to get the location of the ImageTarget relative to the screen?
commented Apr 25, 2018 by sullemandi (220 points)
exactly yes, can you help me achieve this?

my problem is that i have multiple targets very close to each other and i always want to highlight only one of them. my problem here is that once easyAR detects one image it sticks to it, but the user has probably already centered another image.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...