      floor.rotation.x=-Math.PI*.5;
       scene.add(floor);


       params={maxSpeed:10, maxForce:5, lookAtDirection:true, wanderDistance:10, wanderRadius:5, wanderRange:1, numEntities:20}

       // Entity Mesh
       var geometry = new THREE.BoxGeometry( 100, 200, 50 );
       var material = new THREE.MeshBasicMaterial( { color: 0xFFFFFF, wireframe: true } );

       // Entities
       entities=[]
       for(var i=0;i<params.numEntities;i++)
       {
           var mesh=new THREE.Mesh(geometry, material