public void setDirection(Direction direction) {
		this.direction = direction;
		
		float spriteIndex = 0;
		switch(direction)
		{
		case SOUTH:
			spriteIndex = 0;
			break;
		case SOUTHWEST:
			spriteIndex = 1;
			break;
		case WEST:
			spriteIndex = 2;
			break;
		case NORTHWEST:
			spriteIndex = 3;
			break;
		case NORTH:
			spriteIndex = 4;
			break;
		case NORTHEAST:
			spriteIndex = 5;
			break;
		case EAST:
			spriteIndex = 6;
			break;
		case SOUTHEAST:
			spriteIndex = 7;
			break;
		}
		
		entity.material.setUVPos(new Vector2(spriteIndex/8f,0));
	}