text: import * as CES from 'ces';
  import * as BABYLON from '../lib/babylon';
  import { utils } from '../utils/utils';
  import { c_mesh } from '../components/c_mesh';
  import { c_material } from '../components/c_material';
  
  /**
   * ...
   * @author Brendon Smith
   * http://seacloud9.org
   * LightWeight 3D System Design engine
   */
  export class e_box{
  	constructor(_defaults = null){
  		this.entity = new CES.Entity();
  		this.mesh;
  		this.material;
  		this._defaults = _defaults == null ? this.defaults(): _defaults;
  		this.init();
  	}
  
  	static defaults(){
  		return{
  			e_type:'e_box',
  			_size:10,
  			_type:'Box',
  			_name:'box',
  			_layerMask: "0x0FFFFFFF",
  			_isPickable: true,
  			_scaling:1,
  			_position:'0,0,0',
  			_rotation:'0,0,0',
  			_material:'default',
  			_scene:{}
  		}
  	}
  
  	init(){		
  		this.mesh = new c_mesh(this._defaults);
  		this.entity.addComponent(this.mesh);
  		this.material = new c_material(this._defaults);
  		this.entity.addComponent(this.material);
  		this.mesh.obj.material = this.material.obj;
  	}
  }
  
  
  
  