From 9c3c0151cb2b0a824f184501ea2672ef9e87a993 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 15 Apr 2014 19:12:16 -0400 Subject: positioning sides (half done) --- assets/javascripts/rectangles/_env.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'assets/javascripts/rectangles/_env.js') diff --git a/assets/javascripts/rectangles/_env.js b/assets/javascripts/rectangles/_env.js index aa7af50..e2e8e31 100644 --- a/assets/javascripts/rectangles/_env.js +++ b/assets/javascripts/rectangles/_env.js @@ -2,17 +2,22 @@ var environment = new function(){} environment.init = function(){ scene.camera.move({ - "x": 0, - "y": 0, - "z": -1000, - "rotationX": 0.085, - "rotationY": 0.025 + "x": 240, + "y": -1000, + "z": 240, + "rotationX": -PI/2, + "rotationY": 0 // PI }) map && map.zoom(3.00) && map.recenter() + clipper.rects.push( new rect(100,100, 200,300) ) + clipper.rects.push( new rect(200,300, 300,500) ) + + clipper.rects.push( new rect(300,100, 600,300) ) + clipper.rects.push( new rect(400,200, 700,400) ) + clipper.init() scene.update() } environment.update = function(t){ } - -- cgit v1.2.3-70-g09d2