Quest 3 - Struggle with Mixed Reality Character AI Movement through Passthrough World

hey there,

im a totally newbie with mixed reality but want to develop an AR-Exhibition with a character moving through real world aka passthrough mode with the new quest 3.

I’ve already implemented the quest 3 headset and can see the real world with the glasses but with the virtual components I face problems. I dont know how to set specific gameobject on the same spot ‘in reallife’ for every build. For the exhibition part I need to set the character always on the exact same spot in the museum, so does anyone know how to fix this? Maybe with spatial anchors?

Furthermore I need a AI-Movement solution for the character to move around in the virtual/real world randomly and not interfer with the scanned scene model/real world. So I need to find a way to interact with the space setup function to prevent collisions. How can I translate that into scripting?

Thanks a bunch in advance if anyone can help!

yours
saelind

To place it in one location I think you can use persistent spatial anchors.

To move the character, use raycasts if the scene is meshed with the quest 3. Then you can decide how close you want the npc to be to the art

1 Like

thanks for your answer! the spatial anchors sounded like a right choice, I should comb through the meta documentation to find how to call them via script.

Are there any documentation instructions referring to when the scene is meshed?

Btw, I’m using your shadow receiver package, great work!

Awesome!
The mesh is created before the user starts the app. I’m not sure exactly where as I’ve only used demo projects for it so far.
I think you need at least the pre release oculus xr plugin for it.

And good to hear! Would love to see what you made! (And if you like it a review is always appreciated!)