I want to create a room detector in my visionos project, what are the possibilities ?

Asked on 07/27/2024

1 search

To create a room detector in your visionOS project, you can leverage the new room tracking features provided by ARKit. Here are the possibilities:

  1. Room Tracking: ARKit can identify the boundaries of the room you are currently in and compute precisely aligned geometries of the detected walls and floor. This allows you to tailor unique experiences for each space you visit. For example, you can have a virtual pet greet you when you walk into your bedroom. ARKit can also recognize transitions between rooms and switch to delivering data for the new space you occupy. This can help your app exhibit different experiences based on the room you are in. The room tracking data provider requires world sensing authorization and can tell you about the rooms that have been visited.

  2. Room Anchors: VisionOS has introduced the concept of room anchors that consider the user's surroundings on a per-room basis. This allows you to detect a user's movement across rooms and anchor objects on surfaces in the surroundings.

  3. Scene Understanding: VisionOS has significantly extended the fidelity of its scene understanding capabilities. Planes can now be detected in all orientations, allowing you to anchor objects on various surfaces in the surroundings.

By utilizing these features, you can create a robust room detection system in your visionOS project, enabling a wide range of interactive and immersive experiences based on the user's environment.