function Avatar (name, position, color, geometry, material){
	this.name = name;
	this.position = position;
	this.color = color;
	this.geometry = geometry;
	this.material = material;
	
	this.mesh = new THREE.Mesh(this.geometry, this.material);
	this.mesh.position.x = position[0];
	this.mesh.position.y = position[1];
	this.mesh.position.z = 1;
	this.velocity = [0.0, 0.0, 0.0];
		
	this.tick = function(){
		
	};
	
	this.getMesh = function(){
		return this.mesh;
	};
}

function BGpiece (geometry, material){
	this.geometry = geometry;
	this.material = material;
	this.mesh = new THREE.Mesh(this.geometry, this.material);
}
