viewar-guide
Advanced tools
Comparing version 0.8.0 to 0.8.1
{ | ||
"name": "viewar-guide", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "ViewAR Guide", | ||
@@ -5,0 +5,0 @@ "main": "dist/viewar-guide.js", |
@@ -111,3 +111,3 @@ import Vector3 from './math/vector3' | ||
*/ | ||
export const recalibrate = async({ userInput, body, camera }) => { | ||
export const recalibrate = async({ navigation, userInput, body, camera }) => { | ||
userInput.clearRecalibration(); | ||
@@ -141,2 +141,4 @@ | ||
navigation.recalculatePath(); | ||
return EPSILON; | ||
@@ -143,0 +145,0 @@ } |
@@ -22,2 +22,10 @@ import { NO_WAYPOINT } from '../../constants' | ||
const recalculatePath = () => { | ||
if (destination) { | ||
path = findPathToPoi(destination) | ||
previousPath = [] | ||
logPath(path); | ||
} | ||
} | ||
const clearDestination = () => { | ||
@@ -73,2 +81,3 @@ destination = null | ||
update, | ||
recalculatePath, | ||
@@ -75,0 +84,0 @@ hasCurrentWaypoint () { return !!(destination && path[ 0 ]) }, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
186761
2617