You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: The scene ar-hit-test component keeps a Map anchorToObject3D corresponding to previous hit-test result .
Every ar-hit-test tick, the HitTest.updateAnchorPoses function is called to try to update the pose of aforementioned object3D from the list of XRFrame.trackedAnchors . However, if a tracked anchor is not mapped from a hit-test result, such as an anchor created by the user from some other means, Map lookup will fail and object3DOptions will be undefined.
When ar-hit-test component is added to the scene (for instance if you wanted to spawn new boxes by hit-testing the XRMesh/XRplanes) this causes an exception in the above ar-hit-test component once the persistent anchor is restored:
Description: The scene
ar-hit-test
component keeps a MapanchorToObject3D
corresponding to previous hit-test result .Every
ar-hit-test
tick, theHitTest.updateAnchorPoses
function is called to try to update the pose of aforementioned object3D from the list ofXRFrame.trackedAnchors
. However, if a tracked anchor is not mapped from a hit-test result, such as an anchor created by the user from some other means, Map lookup will fail andobject3DOptions
will be undefined.aframe/src/components/scene/ar-hit-test.js
Lines 197 to 202 in a3f6d12
Could be addressed just by adding a check for
object3DOptions
before attempting to access its properties and apply the pose1.4.21.5.0anchors
andhit-test
The text was updated successfully, but these errors were encountered: