Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

how to check if space was changed?

Discussion in 'VR' started by slava_pankratov, May 26, 2016.

  1. slava_pankratov

    slava_pankratov

    Joined:
    Jan 17, 2015
    Posts:
    45
    Hi!

    I'm launching my app, placing a 3d chair, open device menu, physically go to another room in my house or into my friend's house - then resume the app --- how can I check that the space was changed and I need to ask user to position WorldAnchor again? Thanks.
     
  2. shouchard

    shouchard

    Unity Technologies

    Joined:
    Mar 29, 2016
    Posts:
    10
    The device should do a pretty good job tracking while moving around your house even if your app is suspended. When it resumes it will likely see that as a very large translation. Anchored objects should remain close to where they were left. If the issue is that the user is too far from the play space, you should be able to calculate distance from your anchored objects.

    I'm not sure if that answers your question. Let me know if there's anything I can clarify.
     
  3. slava_pankratov

    slava_pankratov

    Joined:
    Jan 17, 2015
    Posts:
    45
    But what if I turn the device off, then go to another room and turn it on? Thank you.
     
  4. shouchard

    shouchard

    Unity Technologies

    Joined:
    Mar 29, 2016
    Posts:
    10
    Your application will close when the device turns off.

    edit> sorry for the late reply. We were on holiday Friday and Monday.