Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with position after .pause() state #298

Open
greatspoke opened this issue Aug 27, 2022 · 1 comment
Open

Problem with position after .pause() state #298

greatspoke opened this issue Aug 27, 2022 · 1 comment

Comments

@greatspoke
Copy link

Hey guys!

Does anyone know how to update SceneLocationView after a pause? The thing is, if the phone is turned to the other side during the pause and then return to .run(), all the markers change their geolocation relative to the side where you turned the phone! How to reload SceneLocationView and give it new coordinates relative to itself?

Thank you!
Regards
Alex

@greatspoke
Copy link
Author

Found a good solution! Maybe it help for anyone:

  let configuration = ARWorldTrackingConfiguration()
  SceneLocationView.session.run(configuration, options: .resetTracking)
  SceneLocationView.run()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant