diff options
Diffstat (limited to 'assets/javascripts/rectangles/_env.js')
| -rw-r--r-- | assets/javascripts/rectangles/_env.js | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/assets/javascripts/rectangles/_env.js b/assets/javascripts/rectangles/_env.js index 5b4643a..d41d490 100644 --- a/assets/javascripts/rectangles/_env.js +++ b/assets/javascripts/rectangles/_env.js @@ -1,14 +1,18 @@ var environment = new function(){} environment.init = function(){ - window.scene && scene.camera.move({ - "x": 1000, - "y": 1500, - "z": 250, - "rotationX": 0, // PI/2, - "rotationY": PI/2, // PI - }) - + if (window.scene) { + scene.camera.move({ + "x": 1000, + "y": 1500, + "z": 250, + "rotationX": 0, // PI/2, + "rotationY": PI/2, // PI + }) + + scene.camera.radius = 25 + } + map.center.a = scene.camera.x map.center.b = scene.camera.z // map.center.a = 0 |
