Skip to content

Commit e512c57

Browse files
committed
Add example scentence
1 parent 211bd43 commit e512c57

File tree

1 file changed

+5
-0
lines changed
  • three.js/examples/location-based

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ function main() {
1515

1616
// You can change the minimum GPS accuracy needed to register a position - by default 1000m
1717
//const arjs = new LocationBased(scene, camera, { gpsMinAccuracy: 30 } );
18+
19+
// You can set the initial position
20+
// const initialPosition = { longitude: 51.47816410406528, latitude: -0.001540203696240924 };
21+
// const arjs = new LocationBased(scene, camera, { initialPosition });
22+
1823
const cam = new WebcamRenderer(renderer, '#video1');
1924

2025
const mouseStep = THREE.MathUtils.degToRad(5);

0 commit comments

Comments
 (0)