	for(int t=0;t!=entityCount;t++)
		fprintf(fn,"id %d pos %3.3f %3.3f %3.3f\n",
			entity[t].id,entity[t].pos.x,entity[t].pos.y,entity[t].pos.z);

	fclose(fn);
}
///////////////////////////////////////////