Skip to content

Commit e67ff09

Browse files
committed
Add alert box on A-Frame location based example regarding manual location input
1 parent 84273f1 commit e67ff09

File tree

2 files changed

+3
-0
lines changed
  • aframe/examples/new-location-based
  • three.js/examples/location-based

2 files changed

+3
-0
lines changed

aframe/examples/new-location-based/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
window.onload = () => {
22
let testEntitiesAdded = false;
3+
alert('If testing the lat/lon manual input on a mobile device, please turn off your GPS to avoid the real location being detected.');
34
const el = document.querySelector("[gps-new-camera]");
45
el.addEventListener("gps-camera-update-position", e => {
56
if(!testEntitiesAdded) {

three.js/examples/location-based/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ function isMobile() {
99
const scene = new THREE.Scene();
1010
const camera = new THREE.PerspectiveCamera(80, 2, 0.1, 50000);
1111
const renderer = new THREE.WebGLRenderer({ canvas: document.querySelector('#canvas1') });
12+
console.log(THREE.Math.degToRad(90));
13+
console.log(THREE.MathUtils.degToRad(90));
1214

1315
const geom = new THREE.BoxGeometry(20,20,20);
1416

0 commit comments

Comments
 (0)