diff --git a/mobile/src/ARViewer/ARViewer.js b/mobile/src/ARViewer/ARViewer.js index 0aa2f98..2ed41db 100644 --- a/mobile/src/ARViewer/ARViewer.js +++ b/mobile/src/ARViewer/ARViewer.js @@ -63,13 +63,8 @@ class WorkItemSceneAR extends React.Component { return this.arScene .performARHitTestWithRay(orientation.forward) .then((results) => { - if (!results) { - return - } - - const forward = orientation.forward - const position = orientation.position - // Default position is just one meter in front of the user. + const { forward, position } = orientation + // Default position is just one meter in front of the user const defaultPosition = [forward[0] * 1.0, forward[1] * 1.0, forward[2]] * 1.0 let hitResultPosition = null @@ -187,7 +182,7 @@ class WorkItemSceneAR extends React.Component { innerAngle={5} outerAngle={20} direction={[0, -1, 0]} - position={[0, 30, 0]} + position={[0, 10, 0]} color="#ffffff" castsShadow={true} shadowNearZ={0.1}