Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active May 23, 2017 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/0bfcdaf1c6a7a2d5210bd666a568e43b to your computer and use it in GitHub Desktop.
Save matthieu-D/0bfcdaf1c6a7a2d5210bd666a568e43b to your computer and use it in GitHub Desktop.
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