How to turn off Wayspot repositioning?

Hi everyone,

We are currently working on a Chinatown AR project. We have portals show up when users scan the wayspots. But the portals sometimes are jumping around when pedestrians pass by or when users just walk around and look around the portal. We heard there is a way to turn off the wayspot repositioning function but we couldn’t find the relative articles or sample projects. Does anyone have any ideas?

Thanks in advance!

If you want to prevent repositioning then you can just remove the event listener for xrprojectwayspotfound the first time the handler function is executed:

const foundWayspot = ({detail}) => {
  this.el.sceneEl.removeEventListener('xrprojectwayspotfound', foundWayspot)

this.el.sceneEl.addEventListener('xrprojectwayspotfound', foundWayspot)

You probably also want to remove the event listener for xrprojectwayspotlost on line 30 of named-wayspot.js.

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.