     
 # global View variables
 cam = null
-cam2d = null
+#cam2d = null
 
 #constants
 CAM_DISTANCE = 140


    # refresh the scene once a bucket is loaded
    # FIXME: probably not the most elgant thing to do
    $(window).on("bucketloaded", => cam.hasChanged = true; cam2d.hasChanged = true) 

  animate : ->
    @renderFunction()

        # why z? keep in mind the plane is rotated 90°
        g.scale.x = g.scale.z = x 
        cam.hasChanged = true
        #cam2d.hasChanged = true

  zoomIn : ->
    if cam.getZoomStep() > 0
