From c780419e05bddf80b09e3091634361f289666f35 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 18 Apr 2014 14:42:01 -0400 Subject: camera cursor --- assets/javascripts/rectangles/_env.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'assets/javascripts/rectangles/_env.js') diff --git a/assets/javascripts/rectangles/_env.js b/assets/javascripts/rectangles/_env.js index 463fb3e..145806e 100644 --- a/assets/javascripts/rectangles/_env.js +++ b/assets/javascripts/rectangles/_env.js @@ -8,6 +8,9 @@ environment.init = function(){ "rotationX": PI/2, "rotationY": PI }) + + map.center.a = scene.camera.x + map.center.b = scene.camera.z clipper.rooms.push( new room ({ rect: new rect(-100,-100, 100,100), -- cgit v1.2.3-70-g09d2