From 8551d91b0464a14bdf7126d9f519b903abccefe0 Mon Sep 17 00:00:00 2001 From: "Trevor F. Smith" Date: Mon, 25 Sep 2017 13:53:14 -0700 Subject: [PATCH] Fix a bug in the hit test logic. --- examples/hit_test/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/hit_test/index.html b/examples/hit_test/index.html index 81eda6a..e2ade9c 100644 --- a/examples/hit_test/index.html +++ b/examples/hit_test/index.html @@ -100,7 +100,8 @@ if(anchorOffset === null){ this._messageEl.innerHTML = 'miss' } else { - this._messageEl.innerHTML = 'hit: ' + ','.join(anchorOffset.anchor.coordinates.position) + const anchor = frame.getAnchor(anchorOffset.anchorUID) + this._messageEl.innerHTML = 'hit: ' + anchor.coordinates.position.join(', ') // Save the XRAnchorOffset and the node so that we can update the node's position based off of the anchor let anchorInfo = {