Last active
May 23, 2017 19:10
-
-
Save matthieu-D/0bfcdaf1c6a7a2d5210bd666a568e43b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.markerLocation = new AR.GeoLocation(poiData.latitude, poiData.longitude, poiData.altitude); | |
var actionRange = new AR.ActionRange(this.markerLocation, this.DANGER_RADIUS, { | |
onEnter : () => { | |
AR.logger.debug('entered danger zone') | |
this.alarm.play(-1); | |
}, | |
onExit : () => { | |
if (this.alarm.state === AR.CONST.STATE.PLAYING) { | |
this.alarm.stop(); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment