Tweak to AR view
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user