DanijelHuis / HDAugmentedReality

Augmented Reality component for iOS, written in Swift.
MIT License
480 stars 97 forks source link

The position of the ARAnnotationView in AR are to high up in the screen making it sometimes difficult to see. #62

Open shrawan2015 opened 7 years ago

shrawan2015 commented 7 years ago

First of all, Thanks for the great library.

I want the position of the ARAnnotationView on the eye label instead to show at the elevation. Currently, i have to move the iPhone at the sky level to see the user. Is there any way that can help to resolve it. Above scenario is given in below screenshot.

step0004 && Setup Code for ARViewController.

    self.arViewController = ARViewController()
    self.arViewController.dataSource = self
    self.arViewController.maxDistance = 0
    self.arViewController.maxVisibleAnnotations = 30
    self.arViewController.maxVerticalLevel = 5
    self.arViewController.headingSmoothingFactor = 0.05
    self.arViewController.trackingManager.userDistanceFilter = 25
    self.arViewController.trackingManager.reloadDistanceFilter = 75
    self.arViewController.setAnnotations(arPersons)
    self.arViewController.uiOptions.debugEnabled = false
    self.arViewController.uiOptions.closeButtonEnabled = true
    self.arViewController.setPinchGestureOnOverLay()

Thanks.

DanijelHuis commented 7 years ago

ARPresenter class has lots of properties to control y position of annotation views by their distance. They all start with "distance..