BeyondAR/beyondar

Fix image size without changing radar view

Closed this issue · 2 comments

Hi,
I tried the setPushAwayDistance and setPullCloserDistance methods and only setPullCloserDistance method seems to be working for this purpose. But there is one problem when you want to use it with the radar. When i change the value of setPullCloserDistance to adjust the image sizes, it is also changing the location of the points on radar.

I want the radar to show the points inside the radius that i set properly ( with mRadarPlugin.setMaxDistance(600);) and i want all the icons to be at the same size too.

How can i do that?

I also faced this issue. For the immediate fix, i downloaded the GenRadar library separately and used it in BeyondARFragment instead of using its own Radar Module. So that, this approach will not modify the Radar Points if you change the value of setPullCloserDistance to adjust the image sizes.

Yes, this is because to speed up the calculations the radar plugin is taking the already calculated x and y position of the object. As @yasiralijaved was saying you will need to create you own radar.